Sunday, July 17, 2011

useful commend in windows (runas)

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. Examples: runas /user:learn2brighter@blogger.com mmc runas /user:learn2brighter@blogger.com regedit runas /user:learn2brighter@blogger.com appwiz.cpl runas /user:learn2brighter@blogger.com mspaint runas /user:learn2brighter@blogger.com cmd runas /user:learn2brighter@blogger.com shutdown

0 comments:

Post a Comment