Question:
I am working on a Microsoft Server 2008 machine. For some reason, the command “psexec” is not working from powershell on this 1 machine.
When I try to run it I get this:
1 2 3 4 5 6 7 8 9 10 |
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:\> |
It is running powershell 2.0. I found this out by doing:
1 2 3 4 5 6 7 8 9 |
PS C:\> $Host.Version Major Minor Build Revision ----- ----- ----- -------- 2 0 -1 -1 PS C:\> |
Any thoughts? I need this command and I’d really prefer not to use a “work around”.
Answer:
Completing the Answer:
You must need to download PSEXEC from the link below and keep in path the launch from Powershell or any Command prompt:
http://technet.microsoft.com/en-us/sysinternals/bb897553