How do I run a command as another user?
Answer
To “Run as different user” using RUNAS Command in Command Prompt
Answer
To “Run as different user” using RUNAS Command in Command Prompt
- Open CMD.
- Enter the command. runas /user:USERNAME “C:fullpathofProgram.exe” For example, if you want to start notepad from user Test run this command : …
- Now you should enter users password.
- If there will be UAC pop up press yes.