我正在使用Microsoft Server 2008計算機。出於某種原因,命令「psexec」不能從這臺機器上的powershell中運行。psexec not recognized
當我嘗試運行它,我得到這個:
PS C:\> psexec
The term 'psexec' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:7
+ psexec <<<<
+ CategoryInfo : ObjectNotFound: (psexec:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\>
據PowerShell 2.0中運行。我通過這樣做發現了這一點:
PS C:\> $Host.Version
Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1
PS C:\>
有什麼想法?我需要這個命令,我真的不想使用「解決方法」。
您已經下載安裝及PSEXEC,對不對? –
Woops ...我沒有意識到這不是PowerShell的標準工具。這是當你公司的管理員爲你做太多工作時發生的事情:) 謝謝,解決了它! – user952342