2016-03-21 22 views
0

PSSessionコマンドを使用して、Powershellを通じてデスクトップからサーバーに接続しています。リモートサーバーにはVMware PowerCLIがインストールされています。私は以下のようなモジュールを実行しようとしています...

> PS C:\Users\cwip0989\Documents> Enter-PSSession -ComputerName AB-NPC1-D1B099 -Credential cwip0989 
[AB-NPC1-D1B099]: PS C:\Users\cwip0989\Documents> C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noe -c ".\" 
    'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\'"" 
The remote pipeline has been stopped. 
     + CategoryInfo   : ResourceUnavailable: (:) [], ParentContainsErrorRecordException 
     + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException 

    [AB-NPC1-D1B099]: PS C:\Users\cwip0989\Documents> C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noe -c ".\" 
    'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\'"" 
    The remote pipeline has been stopped. 
     + CategoryInfo   : ResourceUnavailable: (:) [], ParentContainsErrorRecordException 
     + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException 

私はPowershell Scriptingにいくつかの制限があると考えています。 リモートPowerShellセッションからVmware PowerCLIを実行することはできますか?

はまた、私は

[AB-NPC1-1B094]: PS C:\> $psversiontable 

Name       Value 
----       ----- 
CLRVersion      2.0.50727.5485 
BuildVersion     6.1.7601.17514 
PSVersion      2.0 
WSManStackVersion    2.0 
PSCompatibleVersions   {1.0, 2.0} 
SerializationVersion   1.1.0.1 
PSRemotingProtocolVersion  2.1 

答えて

0

リモートサーバ上でコマンドを実行するために使用することができますinvoke-vmscript を見ているが、やってなくても、してください...リモートPowerShellのバージョンは常に2.1である、一つのことを発見しましたpssession。ただし、これはあなたのデスクトップのPowerShellまたはPowercliでのコマンドの出力を提供しません。

関連する問題