New
#1
Run "cmd.exe" as a given user and "as administrator" in command line
Hello and thank you for reading my post.
If I'm logged in Windows as user "u1", I can execute "cmd.exe" "as administrator" by choosing
I would like to start another "cmd.exe" console as "u2" and "as administrator".Code:"Start" -> "cmd.exe" and right-click "Run as administrator".
(So, "u2" is not the current logged in user).
The following command:
runs "cmd.exe" as "u2" but not "as administrator".Code:u1 cmd.exe> runas /user:u2 "cmd.exe"
I would like to do this in command line. Can you tell me how?
Best regards.
Nota:
u1 cmd.exe> means: I'm running "cmd.exe" as "u1".