Home > Commands N-Z > Commands S

SU


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Switch User.


Syntax

SU user ["cmdline] [domain] [[Winsta\]Desktop] [-cb] [-dn] [-g] [-l] [-w] [-e] [-b] [-i] [-s] [-n] [-v]


Parameters
"cmdline" (NT4)
The command to run, default %COMSPEC%.
domain (NT4)
The domain for the user account ('.' = local m/c).
Winsta\
Desktop (NT4)
The profile to load, default current.
user (NT4)
?

Switches
-b (NT4)
Batch logon.
-cb (NT4)
Console bypass.
-dn (NT4)
Do not switch to new desktop.
-e (NT4)
Inherit parent environment.
-g (NT4)
GUI option.
-i (NT4)
Interactive logon.
-l (NT4)
Load the .Default user registry hive.
-n (NT4)
Network logon.
-s (NT4)
Service logon.
-v (NT4)
Verbose.
-w (NT4)
Use current registry hive.

Related

AT - Schedule a command to run at a later time.
RUNAS /USER:CMD NT2000
in the GUI hold Shift, and right-click on an executable.
Equivalent Linux BASH commands:
su - Run a command with substitute user and group id.


Notes

All LogOn Types require specific User Rights to be granted:

Bugs: see Q265401


Examples
Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NT4