psexec未被识别。

5

我正在使用Microsoft Server 2008机器进行工作。不知何故,这台机器上的PowerShell无法运行“psexec”命令。

当我尝试运行它时,会出现以下情况:

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了吗? - Alex K.
哎呀...我没意识到它不是随 PowerShell 一起提供的标准实用程序。这就是当你公司的管理员为你做太多工作时会发生的事情 :)谢谢,问题解决了! - user952342
1个回答

7

抱歉打断一下,但既然这是最近的事情,psexec不是随Vista和Win 7附带的标准Powershell吗?有何不同?psexec中的“ps”是什么意思? - Jake
1
PsExec和PowerShell是完全不同的东西。我相信只有Mark Russinovich才能解释“PsExec”中的“Ps”是什么,但它只是与进程相关,而“ps”只是代表它。 - AvkashChauhan
在这里了解有关 PsExec 的更多信息:http://www.windowsitpro.com/article/remote-computing/psexec - AvkashChauhan

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接