I have compiled a list of Windows Rundll32 commands, which can be used for directly invoking the specified functions or to create shortcuts of those, which you use and require frequently.
Rundll32 commands for Windows
To Create Desktop Shortcuts : Right click on desktop > New > Shortcut. In the first box of the Create Shortcut Wizard, copy-paste the desired command. Then Click Next. Give the Shortcut a Name. Finally, select an appropriate icon for it.
Some of them can prove to be rather useful, eg, copy-paste rundll32.exe keymgr.dll,KRShowKeyMgr in Search bar and hit enter; and you will see the Stored User Names and Passwords Box pop up ! The Stored User Names and Passwords Applet lets you assign user names and passwords to use, when needing to authenticate yourself, to services in domains other than the one you are currently logged into. It’s normally very awkward to access it, but this way lets you do so faster ! You can thus access quite a few useful functions easily !
Add/Remove Programs
RunDll32.exe shell32.dll,Control_RunDLL appwiz.cpl,0
Content Advisor
RunDll32.exe msrating.dll,RatingSetupUI
Control Panel
RunDll32.exe shell32.dll,Control_RunDLL
Delete Temporary Internet Files
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
Delete Cookies
Pads layout download free. RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
Delete History
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
Delete Form Data
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
Delete Passwords
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
Delete All
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
Delete All + files and settings stored by Add-ons:
![Runas /user:administrator c: windows explorer.exe sysdm.cpl key Runas /user:administrator c: windows explorer.exe sysdm.cpl key](/uploads/1/2/3/7/123713712/120574705.png)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
Date and Time Properties
RunDll32.exe shell32.dll,Control_RunDLL timedate.cpl
Display Settings
RunDll32.exe shell32.dll,Control_RunDLL access.cpl,3
Device Manager
RunDll32.exe devmgr.dll DeviceManager_Execute
Folder Options – General
RunDll32.exe shell32.dll,Options_RunDLL 0
Folder Options – File Types
RunDll32.exe shell32.dll,Control_Options 2
Folder Options – Search
RunDll32.exe shell32.dll,Options_RunDLL 2
Folder Options – View
RunDll32.exe shell32.dll,Options_RunDLL 7
Forgotten Password Wizard
RunDll32.exe keymgr.dll,PRShowSaveWizardExW
Hibernate
RunDll32.exe powrprof.dll,SetSuspendState
Internet Explorer’s Internet Properties dialog box.
rundll32.exe Shell32.dll,Control_RunDLL Inetcpl.cpl,4
Keyboard Properties
RunDll32.exe shell32.dll,Control_RunDLL main.cpl @1
Lock Screen
RunDll32.exe user32.dll,LockWorkStation
Mouse Button – Swap left button to function as right
Rundll32 User32.dll,SwapMouseButton
Mouse Properties Dialog Box
Rundll32 Shell32.dll,Control_RunDLL main.cpl @0,0
Map Network Drive Wizard
Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL Connect
Network Connections
RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl
Organize IE Favourites
Rundll32.exe shdocvw.dll,DoOrganizeFavDlg
Open With Dialog Box
Rundll32 Shell32.dll,OpenAs_RunDLL Any_File-name.ext
Printer User Interface
Rundll32 Printui.dll,PrintUIEntry /?
Printer Management Folder.
Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder
Power Options
RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl
Process Idle Tasks
rundll32.exe advapi32.dll,ProcessIdleTasks
Regional and Language Options
Rundll32 Shell32.dll,Control_RunDLL Intl.cpl,0
Stored Usernames and Passwords
RunDll32.exe keymgr.dll,KRShowKeyMgr
Safely Remove Hardware Dialog Box
Rundll32 Shell32.dll,Control_RunDLL HotPlug.dll
Sound Properties Dialog Box
Rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,0
System Properties Box
Rundll32 Shell32.dll,Control_RunDLL Sysdm.cpl,3
System Properties – Advanced
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,4
System Properties: Automatic Updates
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,5
Taskbar Properties
RunDll32.exe shell32.dll,Options_RunDLL 1
User Accounts
RunDll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl
Unplug/Eject Hardware
RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
Windows Security Center
RunDll32.exe shell32.dll,Control_RunDLL wscui.cpl
Windows – About
RunDll32.exe SHELL32.DLL,ShellAboutW
Windows Fonts Installation Folder
Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL FontsFolder
Windows Firewall
RunDll32.exe shell32.dll,Control_RunDLL firewall.cpl
Wireless Network Setup
RunDll32.exe shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW
Hope you find the list useful. If you know of any more, please do share.
NOTE: Please also see the comment by André Modesto below.
TIP: Download this tool to quickly find & fix Windows errors automatically
Related Posts:
Run as different user allows a user to run .bat, .cmd, .exe, .msc, and .msi files with different permissions than the user's current logon provides.
Run as different user will only affect the current instance of the running .bat, .cmd, .exe, .msc, or .msi file. You can open multiple instances of the file with each instance running as a different user.
This tutorial will show you how to use Run as different user to run .bat, .cmd, .exe, .msc, and .msi files with different permissions than your account in Windows 10.
Run as different user will only affect the current instance of the running .bat, .cmd, .exe, .msc, or .msi file. You can open multiple instances of the file with each instance running as a different user.
This tutorial will show you how to use Run as different user to run .bat, .cmd, .exe, .msc, and .msi files with different permissions than your account in Windows 10.
If the user you use with 'Run as different user' doesn't have the appropriate permissions to access the file, then you will get an access is denied type error message like below.
CONTENTS:
- Option One: To 'Run as different user' in Context Menu
- Option Two: To 'Run as different user' in Command Prompt
To 'Run as different user' in Context Menu
1. Press and hold the Shift key, right click or press and hold on a .bat, .cmd, .exe, .msc, or .msi file that you want to run as a different user, click/tap on Run as different user, and release the Shift key. (see screenshot below)
2. Enter the credentials of the user you want to run as, and click/tap on OK.
If this is for a domain user, then you would enter their user name using one of the parameters below.
- UserName@DomainName
- DomainNameUserName
To 'Run as different user' in Command Prompt
For more on the usage of the runas command, see: Runas - TechNet Library
1. Open a command prompt.
2. Enter the command you want to use below into the command prompt, and press Enter. (see screenshots below step 3)
runas /user:'<username>' 'Full path of file'
(To save credentials and use saved credentials of user)
runas /user:'<username>' /savecred 'Full path of file'
Substitute <username> in the commands above with the actual user name of the account you want to run the file as. If this is for a domain user, then you would enter their user name using one of these parameters: UserName@DomainName or DomainNameUserName
Substitute Full path of file in the commands above with the actual full path of the .bat, .cmd, .exe, .msc, or .msi file you want to run as the user.
Substitute Full path of file in the commands above with the actual full path of the .bat, .cmd, .exe, .msc, or .msi file you want to run as the user.
3. Enter the password of the user, and press Enter. (see screenshots below)
You will not see the text of the password as you enter it.
If you had previously used the command from step 2 with the /savecred switch for the same user, then you will not be prompted to enter the user's password since it was saved in Credential Manager last time.
If you had previously used the command from step 2 with the /savecred switch for the same user, then you will not be prompted to enter the user's password since it was saved in Credential Manager last time.
4. If you used the command from step 2 with the /savecred switch, then the password you entered in step 3 (if prompted) for the user will be saved in Credential Manager. (see screenshot below)
That's it,
Shawn
I have the Windows 7 operating system, and I have administrator user credentials stored (known in advance).
I know we can run a program or .exe using 'Runas' verb and launch a process, but my question is specific to explorer.exe. I am trying to run 'runas /user: 'control.exe printers' it launches successfully after giving a password to the prompt, but when I am checking within TaskManager it is running under my regular user with which I have logged on.
I have noticed this is only with explorer.exe. Other programs are working fine as expected with runas.
What is the catch here with Windows 7? Or how do I run explorer.exe or control.exe with printers?
Peter Mortensen14.2k1919 gold badges8888 silver badges115115 bronze badges
user393014user39301411111 gold badge66 silver badges1515 bronze badges
4 Answers
Running explorer.exe as a user different from the one that is already logged in using 'runas' command is disabled in Windows 7. But there is a workaround for this:
- Start -> Run -> regedit
- Navigate to the registry key: HKEY_CLASSES_ROOTAppID{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}
- Right click on the registry key and click Permissions..
- Give Full Control permissions to the user logged in.
- Start -> Run -> dcomcnfg.exe -> Expand DCOM Config
- Right click and select properties of 'Elevated-Unelevated Explorer Factory', click the Identity tab and select 'The launching user'
After doing this explorer.exe will launch as the user specified in the RunAs.exe command!
bittusarkarbittusarkar5,00033 gold badges2121 silver badges4444 bronze badges
This one works for Windows 7, 8.0 and 8.1
- Start Registry as an administrative user.
- Navigate / find IDHKEY_CLASSES_ROOTAppID{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}
- Take ownership of the node and assign full rights of the registry node.
- Rename node RunAs to _RunAs.
- Close Regedit.
Now go to C:WindowsExplorer.exe and create a shortcut to desktop (use Send To).
Right click and run as Administrator. This should open Windows Explorer as a different user.
Peter Mortensen14.2k1919 gold badges8888 silver badges115115 bronze badges
digitally_inspireddigitally_inspired
Windows Explorer likes to open new windows in the same process as the shell aka taskbar.
You could try:
This should open 'ComputerControlPanelPrinters' in a new process..
Runas /user:administrator C: Windows Explorer.exe Sysdm.cpl Windows 7
Peter Mortensen14.2k1919 gold badges8888 silver badges115115 bronze badges
AndersAnders73.1k1010 gold badges7878 silver badges130130 bronze badges
LuFFy4,0531010 gold badges2828 silver badges5353 bronze badges
Matty BrownMatty Brown
Not the answer you're looking for? Browse other questions tagged windows-7runas or ask your own question.
Good Evening!Great! That's good news! Glad to hear that running that command brought back the Internet connection.
I'd like to have you update the Keyboard driver and see if that maybe fixes the issue with not being able ot use it properly.
Please follow these instructions:
In the device Properties dialog box, click the Driver tab, and then click Update Driver to start the Hardware Update Wizard. Follow the instructions to update the driver.
The error code for Malwarebytes is: PROGRAM_ERROR_ENUMERATE_LANGUAGES (2,0)
Lets try running the MBAM removal tool and then re-installing it and see if the error message disappears then.MalwareBytes' Anti-Malware Uninstall
Please do the following:
- Download and run mbam-clean.exe from here
- It will ask to restart your computer, please allow it to do so very important
- After the computer restarts, temporarily disable your Anti-Virus and install the latest version of Malwarebytes' Anti-Malware from here
- Note: You will need to reactivate the program using the license you were sent via email if using the Pro version
- Launch the program and set the Protection and Registration. Then go to the UPDATE tab if not done during installation and check for updates.
Restart the computer again and verify that MBAM is in the task tray if using the Pro version. Now setup any file exclusions as may be required in your Anti-Virus/Internet-Security/Firewall applications and restart your Anti-Virus/Internet-Security applications. You may use the guides posted in the FAQ's here or ask and we'll explain how to do it.
NEXT:
Malwarebytes' Anti-Malware
I see that you have Malwarebytes' Anti-Malware installed on your computer could you please do a scan using these settings:
- Open Malwarebytes' Anti-Malware
- Select the Update tab
- Click Check for Updates
- After the update have been completed, Select the Scanner tab.
- Select Perform quick scan, then click on Scan
- Leave the default options as it is and click on Start Scan
- When done, you will be prompted. Click OK, then click on Show Results
- Checked (ticked) all items and click on Remove Selected
- After it has removed the items, Notepad will open. Please post this log in your next reply. You can also find the log in the Logs tab. The bottom most log is the latest
NEXT:
OpenOffice.org is causing an error whenever the computer starts, because
'Windows cannot find the file specified'
Am seriously considering uninstalling this program, as I don't use it anymore.
If you no longer use OpenOffice, then you may want to consider going ahead and removing it. You could also try to uninstall it and re-install it to see if that error message gets fixed with a removal and re-installation of the program.'Windows cannot find the file specified'
Am seriously considering uninstalling this program, as I don't use it anymore.
Realplayer has been showing instability since I first noticed the initial infection, although I haven't checked on it since running combofix.
Could you please check on that now to see how it's behaving?Also, there appears to be some, (programming code?) scattered in various locations in the
'My documents' folder.
The files are:
Desktop.ini (several of these)
Thumbs.db (several of these)
dxva_sig.txt (only one)
These files are usually hidden by Windows. When we ran one of our tools it enabled the option to show hidden files. Be assured when we clean-up our tools later this will get set back to Disabled and they should not be showing for you then.'My documents' folder.
The files are:
Desktop.ini (several of these)
Thumbs.db (several of these)
dxva_sig.txt (only one)
Please also run the following scans for me:
ESET Online Scanner
I'd like us to scan your machine with ESET Online Scan
Note:It is recommended to disable on-board anti-virus program and anti-spyware programs while performing scans so there are no conflicts and it will speed up scan time.
Please don't go surfing while your resident protection is disabled!
Once the scan is finished remember to re-enable your anti-virus along with your anti-spyware programs.
- Hold down Control and click on the following link to open ESET OnlineScan in a new window.
ESET OnlineScan - Click the button.
- For alternate browsers only: (Microsoft Internet Explorer users can skip these steps)
- Click on to download the ESET Smart Installer. Save it to your desktop.
- Double click on the icon on your desktop.
- Check
- Click the button.
- Accept any security warnings from your browser.
- Check
- Make sure that the option 'Remove found threats' is Unchecked
- When the Computer scan settings display shows, click the Advanced option, the place a check next to the following (if it is not already checked):
- Enable Anti-Stealth technology
- Push the Start button.
- ESET will then download updates for itself, install itself, and begin
scanning your computer. Please be patient as this can take some time. - When the scan completes, push
- Push , and save the file to your desktop using a unique name, such as
ESETScan. Include the contents of this report in your next reply. - Push the button.
- Push
NEXT:
Security Check
Download Security Check by screen317 from here or here.
- Save it to your Desktop.
- Double click SecurityCheck.exe and follow the onscreen instructions inside of the black box.
- A Notepad document should open automatically called checkup.txt; please post the contents of that document.