Running process using PsExec in elevated mode (undocumented)

If you need to run process on target machines your probably already using PsExec which is part of PsTools.

There is one hidden gem in the documentation of PxExec about how to run remote process in elevated way, apparently its so simple, just use “-h” argument

The command line help for this (not found in the CHM/Web) is

If the target system is Vista or higher, the process run with the account's elevated token, if available.”

Enjoy (Thanks to Evyatar Ben Shitrit for this tip)

Running process using PsExec in elevated mode (undocumented) Running process using PsExec in elevated mode (undocumented) Reviewed by Ran Davidovitz on 1:15 PM Rating: 5

2 comments:

awargo said...

Was about to pull my hair out... then found this post :)

Thanks!

Anonymous said...

Holy crap... why was this so hidden?
Its 2014 and Im just finding this out.

Powered by Blogger.