SU (Resource Kit)
Switch User.
Syntax SU"[cmdline]" [domain] [[Winsta\]Desktop] [options] Key cmdline The command to run (default =%comspec%) domain The domain for the user account ('.' = local m/c) Winsta\Desktop The profile to load (default = current) Options -cb console bypass -dn do not switch to new desktop -g GUI option -l load the .Default user registry hive -w use current registry hive -e Inherit parent environment -b batch logon -i interactive logon -s service logon -n network logon -v verbose
All LogOn Types require specific User Rights to be granted...
SeNetworkLogonRight, SeServiceLogonRight, SeInteractiveLogonRight, SeBatchLogonRight
Bugs: see Q265401
The RUNAS command is a lot easier to use!
"Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us" - Nelson Mandela
Related Commands:
RUNAS - Execute a program under a different user account.
PsExec - Execute process remotely
Equivalent Linux BASH commands:
su - Run a command with substitute user and
group id