using psexec to launch processes that survive logoff/logon …

i was reading russinovich’s blog this morning searching for a particular issue and ran across these two gems on how to run an application to survive the logoff/logon sequence.  keep in mind that later operating systems utilize session 0 isolation and requires specifying the session number.

 

for windows xp and prior operating systems:

psexec –sid <path>\procmon.exe

 

for later operating systems:

psexec –sd –i 0 <path>\procmon.exe

 

 

 

for reference, the switches resolve to the following:

  • s – run the remote process in the system account
  • i – run interactive (console if no session is specified)
  • d – don’t wait for process to terminate (non-interactive)

Comments

Post a Comment