Runs a program using alternate credentials than those currently being used. This command is new to Windows 2000.
runas [/profile] [/env] [/netonly] /user:
User credentials for running the program. (The syntax is
domain\userfor domain accounts and
computer\userfor local accounts.)
Program to be run.
User’s profile (may need to be loaded for some programs).
Current network environment instead of user’s local environment.
For remote access.
To open a command shell using the default Administrator account for the domain while logged on as an ordinary domain user:
runas /user:email@example.com cmdEnter password for firstname.lastname@example.org:
********Attempting to start "cmd" as user "email@example.com"...
A second command shell now opens with the following in the title bar:
To run Computer Management using the administrator account JaneD from the domain mtitworld.com:
runas /user:firstname.lastname@example.org "mmc
To open a command shell to administer a server in a different forest using credentials in that forest:
runas /netonly /user:
runas can also be
invoked from the GUI. For example, to open the Display utility in the
Control Panel using alternate credentials, select:
|Start → Settings → Control Panel → hold down Shift → right-click ...|