on-internet
← Community

How do I run a program from command prompt as a different user and as an admin [closed]

Stack Overflow ·

I am using "runas" to open command prompt as a different user but that command prompt is not running as an admin. How can I make it run as an admin? UPDATE: I am using Windows Server 2012 UPDATE: I opened cmd for another account by running runas /user:domain\username cmd.exe Then I tried to run some commands in this new prompt but this is not running as an elevated user (even though it has Administrator privileges).

Comments

Sign in or sign up to comment and upvote.

No comments yet.