Search code examples
wmipsexec

Psexec or WMI - new session every time?


Does someone know if if I run PSEXEC (or WMI) N times in the same program - does it open N new sessions? Or does it use the same session over and over again?


Solution

  • It will open a new session for every time you run it. (Well, unless you were somehow tricking it into running more than one command at a time with a command line like cmd.exe /c ipconfig /registerdns & echo DONE... but that is rather unlikely.)