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" ...


...now it works! :)


16 comments:

  1. Yes it Works!
    Great Job thx.

    ReplyDelete
  2. Yiiiihaaaaaa! thanks :-)

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

    ReplyDelete
  4. Kudos, worked for me too.

    ReplyDelete
  5. Great! Thanks. It help me!

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

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

    ReplyDelete
  8. 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"

    ReplyDelete
  9. Best Betting Sites: New Jersey Mobile Sportsbook Apps
    NJ Online 여수 출장샵 Casinos. Since the Super Bowl, New Jersey 남원 출장샵 has enjoyed the 동두천 출장샵 best of online sports 제주 출장안마 betting. As long as you 상주 출장마사지 have a legal

    ReplyDelete