2012-05-18 113 views
3

我正在使用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:\> 

有什麼想法?我需要這個命令,我真的不想使用「解決方法」。

+3

您已經下載安裝及PSEXEC,對不對? –

+0

Woops ...我沒有意識到這不是PowerShell的標準工具。這是當你公司的管理員爲你做太多工作時發生的事情:) 謝謝,解決了它! – user952342

回答

6

完成答案:

你必須需要從以下鏈接從PowerShell的或命令提示符下載PSEXEC,並保持在路徑推出: http://technet.microsoft.com/en-us/sysinternals/bb897553

+0

對不起劫持,但是由於這已經足夠近了,psexec不是Vista和Win 7附帶的標準Powershell嗎?有什麼不同?什麼是psexec中的「ps」? – Jake

+1

PsExec和PowerShell是完全不同的東西。我相信只有馬克Russinovich可以給出「PsExec」中的「Ps」,但它只與Process相關,「ps」只是代表它。 – AvkashChauhan

+0

在此處瞭解有關PsExec的更多信息:http://www.windowsitpro.com/article/remote-computing/psexec – AvkashChauhan