To run any command under the credentials of a different user, *nix systems have the sudo command. For example:
To run a program under the credentials of a different user under Windows, you can use the runas command.
i use this command to quickly create batch files which i can drop into my c:\windows\system32 folder for immediate path happiness
Related posts:
- Opening a file in your favourite editor from the command line This post serves as a reminder for myself. I use...
- Root Priviledge Escalation in Windows I have just uncovered a way to perform root priviledge...
- Relocating Your Windows Profile To A Different Location In the last few OS rebuilds of my machine, i’ve...
- Switching an IIS website home directory from the command line The title says it all. The problem was simple –...
- How to Create The Ultimate Windows XP Installation CD/DVD http://www.anewmorning.com/2008/01/30/how-to-create-the-ultimate-windows-xp-installation-cddvd/ My laptop is in the perfect condition to try...