Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

psexec not recognized

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:

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:

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".

like image 286
user952342 Avatar asked May 18 '12 11:05

user952342


1 Answers

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

like image 51
AvkashChauhan Avatar answered Oct 15 '22 08:10

AvkashChauhan