3

runas is already installed on many systems (maybe by default) psexec is shipped with the awesome PsTools.

Why would I use psexec (an external tool) instead of runas(an included tool) ?

What are the differences between them?

2 Answers2

2

Of course psexec is no longer an external tool - SysInternals is now part of Microsoft (since 2006, I believe)

From Mark Russinovitch:

Many Windows administrative console tools can run only on a local machine. PsExec lets you remote-enable any of them.

Have a good look through the psexec page here.

Rory Alsop
  • 1,204
1

One of the most important features of psexec (at least for me):
fully detach child from parent
it closes all parent inherited file descriptors (as opposite to start)

bua
  • 271