Thursday, September 22, 2011

Run Control Panel Applets as Another User

Basic Syntax:

runas /user:computername\Administrator command

runas /user:Domain\userName mstsc

For example:

runas /user:workbridge\.zqiux "rundll32.exe shell32.dll,Control_RunDLL hdwwiz.cpl"

Control Panel AppletFilename
Accessibilityaccess.cpl
Add New Hardwarehdwwiz.cpl
Add/Remove Programsappwiz.cpl
Date/Time Propertiestimedate.cpl
Display Propertiesdesk.cpl
FindFastfindfast.cpl
Internet Propertiesinetcpl.cpl
Joystick Propertiesjoy.cpl
Keyboard Propertiesmain.cpl
Local Users managementnusrmgr.cpl
Microsoft Exchangemlcfg32.cpl
Microsoft Mail Post Officewgpocpl.cpl
Modem Propertiesmodem.cplNote: In Windows NT 4.0, W2K, XP and Windows 2003 - Modem properties is telephon.cpl
Mouse Propertiesmain.cpl
Multimedia Propertiesmmsys.cpl
Network Propertiesnetcpl.cplNote: In Windows NT 4.0, W2K, XP and Windows 2003 - Network properties is Ncpa.cpl
Password Propertiespassword.cpl
Power Optionspowercfg.cpl
Regional Settingsintl.cpl
Sound Propertiesmmsys.cpl
System Propertiessysdm.cpl