New
#1
Issues with batch file to run MMC with elevated account
Hey all. I'm trying to create a batch file to run an MMC using an elevated account. I'm a novice when it comes to batch files, but this is what I have so far is:
runas /user:domain\account "mmc C:\SuperConsole.msc"
pause
While I'm not including the domain or account info in this post, the file location is the same. I put the pause in it so I can see the error that I'm getting since I know that the MMC is not popping up.
So, I run the batch file and the CMD prompts for the password. I input the password and I receive the below error:
RUNAS ERROR: Unable to run - mmc C:\SuperConsole.msc
740: The requested operation requires elevation.
This is where I am perplexed. The account I'm running as is an elevated account. I've tried everything from removing the quotes, using my standard account, and placing mmc outside the quotes. I've also tried running a CMD as my elevated account and it comes up fine. Thoughts?
Last edited by ruste84; 26 Feb 2013 at 15:41. Reason: Language was incorrect.