Search This Blog

2011-03-14

Runas Privilages

If you need run a program or explorer under another account (ie local Administrator or another Domain account), you can use the following command:

runas /u:[account] "[program]"

for example:

runas /u:Administrator "notepad.exe"
runas /u:\\Domain\myacount "notepad.exe"

Will allow you to open notepad instance with another set of credentials.

Note: for Windows XP, you can use runas /u:Administrator "explorer.exe /separate" to open another instance of explorer under another account, however this has been removed in Vista and Windows 7.

No comments:

Post a Comment