Wednesday, 21 August 2013

Using Windows 7 runas for dsa.msc mmc causes error 740: The requested operation requires elevation.

Microsoft's User Account Control in Windows 7 Professional

This is my first really bad experience with Microsoft's new User Account Control (UAC).  Something caused our long-used and well trusted service account to be disabled.

After installing Windows Server 2003 Administrative Tools Pack so I can use MMC snap-in "Domain Users and Computers" (dsa.msc) on my local PC and after a few runas error 193, I kept getting the following error message:

C:\>runas /user:"domain\username" "mmc %windir%\system32\dsa.msc"
Ento start mmc C:\Windows\system32\dsa.msc as user "domain\username" ...
RUNAS ERROR: Unable to run - mmc C:\Windows\system32\dsa.msc
740: The requested operation requires elevation.

The solution was to call 'cmd /c' which tells 'cmd' to open and run the command supplied as a parameter, which is our mmc command:

C:\>runas /user:"domain\username" "cmd /c mmc %windir%\system32\dsa.msc"
Enter the password for domain\username:
Attempting to start cmd /c mmc C:\Windows\system32\dsa.msc as user "domain\username" ... it works! :)


  1. Yiiiihaaaaaa! thanks :-)

  2. Thanks, finaly! :D But why I get a DOS windows opened?

  3. I also use the "/savecred" argument, Then i don't need to enter the password every time .

  4. I use :
    runas /user:"domain\username" "cmd /c start /B mmc %windir%\system32\dsa.msc"
    It closes the commandprompt window after apllication start.

  5. anyone interested:
    taking the above and managing a dhcp--preload with the desired server, use the syntax:
    runas /user:"domain\username" "cmd /c start /B mmc %windir%\system32\dhcpmgmt.msc /servername my-dhcp"