Get-Command faltando no Powershell após instalar a versão 4

1

Algo deve ter dado errado instalando o dot net framework 4.5 e o Powershell 4.0

Eu tentei reparar a instalação da estrutura 4.5 e até a desinstalação e reinstalação, mas isso não ajuda.

PS D:\Var\bin> get-command

get-command : Object reference not set to an instance of an object.
In Zeile:1 Zeichen:1
+ get-command
+ ~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Get-Command], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.GetCommandCommand


PS D:\Var\bin> $psversiontable

Name                           Value                                                          
----                           -----                                                          
PSVersion                      4.0                                                            
WSManStackVersion              3.0                                                            
SerializationVersion           1.1.0.1                                                        
CLRVersion                     4.0.30319.18408                                                
BuildVersion                   6.3.9600.16406                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}                                           
PSRemotingProtocolVersion      2.2                                                            

PS D:\Var\bin> $Error.FullyQualifiedErrorId
System.NullReferenceException,Microsoft.PowerShell.Commands.GetCommandCommand
    
por bernd_k 08.05.2014 / 15:41

0 respostas