Monday, October 25, 2010

Allows a user to run specific tools and programs with different permissions than the user's current logon provides

RUNAS
Execute a program under a different user account.
Syntax
RUNAS [/profile] [/env] [/netonly] /user:user Program
Key
/profile Option to load the user's profile (registry)
/env Use current environment instead of user's.
/netonly Use the credentials specified only for remote connections.
/user Username in form USER@DOMAIN or DOMAIN\USER
(USER@DOMAIN is not compatible with /netonly)
Program The command to execute
Enter the password when prompted_
EX:
C:\>runas /user:localmachinename\administrator cmd
C:\>runas /user:domain\username cmd
Enter the password for domain\username:_

No comments:

Post a Comment