Tag Archives: Active Directory

Running Remote Administration Tools with different credentials

Since my domain user doesn’t have administrator privileges, I need to use a different approach to launching MMC snap-ins. There are no options to setting users in the snap-ins, so the only way I’ve found, is by using the runas-command in shortcuts. I’ve included icon paths as well since runas.exe doesn’t have them..

Here are a few examples:

Active Directory Administrative Center (%windir%\system32\dsacn.dll)

C:\Windows\System32\runas.exe /savecred /user:DOMAIN\admin_user "%windir%\system32\dsac.exe"

Users and Computers (%SystemRoot%\system32\dsadmin.dll)

C:\Windows\System32\runas.exe /savecred /user:DOMAIN\admin_user "mmc dsa.msc"

Domains and Trusts (%SystemRoot%\system32\domadmin.dll)

C:\Windows\System32\runas.exe /savecred /user:DOMAIN\admin_user "mmc domain.msc"

Sites and Services (%SystemRoot%\system32\dsadmin.dll)

C:\Windows\System32\runas.exe /savecred /user:DOMAIN\admin_user "mmc dssite.msc"

Group Policy Management (%SystemRoot%\system32\gpoadmin.dll)

C:\Windows\System32\runas.exe /savecred /user:DOMAIN\admin_user "mmc gpmc.msc"

DHCP (%windir%\system32\dhcpsnap.dll)

C:\Windows\System32\runas.exe /savecred /user:DOMAIN\admin_user "mmc dhcpmgmt.msc"

DNS (%SystemRoot%\system32\dnsmgr.dll)

C:\Windows\System32\runas.exe /savecred /user:DOMAIN\admin_user "mmc dnsmgmt.msc"