DevOps · K8s · Volleyball · Travel  •  DevOps · K8s · Volleyball · Travel  •  DevOps · K8s · Volleyball · Travel
Explore NY Stream

— Kiaasa Dhanori Pune

Common Tasks with Run in Windows

The Windows Run dialog lets you open any tool, folder, or Control Panel applet instantly by typing a short command and pressing Enter, skipping menus entirely. This is the complete, verified list of Windows Run commands for Windows 10 and Windows 11, with the legacy XP-era entries corrected and modern replacements noted.

Press Win + R to open the Run box from anywhere. Type a command, press Enter, and the target launches. Because most of these commands are also valid in Command Prompt, PowerShell, the Start menu search box, and the File Explorer address bar, learning them once pays off everywhere in the operating system.

Why Run commands still matter for system administration

Modern Windows hides many classic tools behind redesigned Settings pages, but the underlying executables and Microsoft Management Console (MMC) snap-ins are still present. Typing a Run command jumps straight to the real tool, which is faster than clicking through Settings and far more reliable when you script tasks or support a machine remotely.

A few ground rules before the lists:

  • Run commands are not case-sensitive. NOTEPAD and notepad behave identically.
  • Environment variables work too. Anything wrapped in percent signs, such as %temp%, expands to a real path.
  • Some tools need elevation. For administrative snap-ins, type the command in an elevated prompt, or press Ctrl + Shift + Enter in the Run box to launch as administrator.

Everyday apps and core Windows Run commands

These open the built-in applications that ship with every copy of Windows. Third-party programs such as web browsers are not Run commands by default; you can only launch a browser this way if you create the alias yourself (covered later), so the old firefox and iexplore entries from XP-era lists do not work on a clean install.

CommandOpens
calcCalculator
cmdCommand Prompt
powershellWindows PowerShell
wtWindows Terminal (Windows 11 / installed)
notepadNotepad
writeWordPad (deprecated, removed in newer Windows 11 builds)
mspaintPaint
snippingtoolSnipping Tool
charmapCharacter Map
oskOn-Screen Keyboard
magnifyMagnifier
explorerFile Explorer
controlControl Panel
ms-settings:Settings app (Windows 10/11)
winwordMicrosoft Word (if Office is installed)
excelMicrosoft Excel (if installed)
outlookMicrosoft Outlook (if installed)

Note on WordPad: Microsoft deprecated WordPad and removed it from Windows 11 24H2 and later. On systems where it still exists, the correct Run command is write (not wordpad). For rich-text editing on modern Windows, use Word or a free editor instead.

Power and session Run commands

The classic one-word commands have been replaced by shutdown with switches, which gives you precise control and is what you should script.

TaskCommand
Shut down (60-second timer)shutdown /s
Shut down immediatelyshutdown /s /t 0
Restart immediatelyshutdown /r /t 0
Restart into advanced boot optionsshutdown /r /o
Log off the current userlogoff
Lock the workstationrundll32 user32.dll,LockWorkStation (or Win + L)
Cancel a pending shutdownshutdown /a

The bare shutdown command with no switches only prints the help text on modern Windows, so always include /s or /r. The XP-style shutdown -r still works because the executable accepts both dash and slash switches, but slash is the documented Windows form.

Administrative MMC snap-ins (the sysadmin core)

These are the most valuable Windows Run commands for system administration. Each .msc file is a Microsoft Management Console snap-in that opens a specific management tool. Run them from an elevated prompt for full functionality.

CommandTool
compmgmt.mscComputer Management (umbrella console)
devmgmt.mscDevice Manager
diskmgmt.mscDisk Management
services.mscServices
eventvwr.mscEvent Viewer
taskschd.mscTask Scheduler
gpedit.mscLocal Group Policy Editor (Pro/Enterprise only)
secpol.mscLocal Security Policy
lusrmgr.mscLocal Users and Groups (Pro/Enterprise)
perfmon.mscPerformance Monitor
perfmon /resResource Monitor
fsmgmt.mscShared Folders
rsop.mscResultant Set of Policy
wf.mscWindows Defender Firewall with Advanced Security
certmgr.mscCertificate Manager (current user)
tpm.mscTrusted Platform Module Management

Corrections from older lists: The legacy dfrg.msc (Disk Defragmenter) no longer exists; the modern tool is launched with dfrgui. schedtasks was the XP path to Scheduled Tasks; the current snap-in is taskschd.msc. Remember that gpedit.msc, secpol.msc, and lusrmgr.msc are absent on Windows Home editions because those editions do not include the policy and local-user management features.

System utilities and troubleshooting Run commands

This group covers maintenance, configuration, and diagnostics, the commands you reach for when fixing a slow or misbehaving machine.

CommandTool
taskmgrTask Manager
regeditRegistry Editor
msconfigSystem Configuration
msinfo32System Information
dxdiagDirectX Diagnostic Tool
cleanmgrDisk Cleanup
dfrguiOptimize Drives (defragment)
diskpartDiskPart partition tool (elevated)
chkdskCheck Disk (run from elevated CMD with switches)
sfc /scannowSystem File Checker (elevated)
verifierDriver Verifier Manager
resmonResource Monitor
cleanmgr /sageset:1Configure advanced Disk Cleanup profile
winverWindows version and build number
control updateWindows Update (opens Settings page)

Retired tools to know about: Dr. Watson (drwtsn32), the Clipboard Viewer (clipbrd), the System Configuration Editor (sysedit), syskey, and the standalone Windows Update Manager (wupdmgr) were all removed years ago. Crash analysis now lives in Event Viewer and Windows Error Reporting; clipboard history is enabled with Win + V; and Windows Update is part of the Settings app.

Control Panel applets (.cpl files)

Control Panel items are .cpl files you can open directly. Many now redirect to a Settings page on Windows 11, but the command still works as a shortcut.

CommandApplet
appwiz.cplPrograms and Features (uninstall)
desk.cplDisplay settings
main.cplMouse Properties
powercfg.cplPower Options
timedate.cplDate and Time
intl.cplRegion settings
inetcpl.cplInternet Properties
ncpa.cplNetwork Connections
mmsys.cplSound
sysdm.cplSystem Properties (advanced, env vars)
joy.cplGame Controllers
firewall.cplWindows Defender Firewall
hdwwiz.cplDevice Manager / Add Hardware
wscui.cplSecurity and Maintenance
telephon.cplPhone and Modem

Corrections from XP-era lists: Several old .cpl names are gone. Network Connections is now ncpa.cpl (the old control netconnections path still routes there). Mouse Properties is main.cpl. The applets access.cpl, wuaucpl.cpl (Automatic Updates), netsetup.cpl, odbccp32.cpl, password.cpl, sticpl.cpl, and nusrmgr.cpl no longer exist on modern Windows. Use these replacements:

  • Accessibility: ms-settings:easeofaccess instead of access.cpl.
  • ODBC: odbcad32 (32-bit) or C:\Windows\SysWOW64\odbcad32.exe for the matching architecture.
  • User accounts: netplwiz (advanced user accounts) replaces nusrmgr.cpl and password.cpl.
  • Scanners and cameras: ms-settings:printers or the Camera app replace sticpl.cpl.

Shell folders and environment-variable shortcuts

You can open key folders by typing their environment variable into Run. These expand to the correct path on any machine, which makes them ideal for scripts and remote support.

CommandOpens / value
%temp%Current user temp folder
%appdata%Roaming application data
%localappdata%Local application data
%userprofile%Your user home folder
%homepath%Home path (relative to home drive)
%homedrive%Drive letter of the home directory
%programfiles%Program Files folder
%programdata%Shared application data
%systemdrive%The drive Windows is installed on (usually C:)
%windir%Windows installation directory
shell:startupCurrent user Startup folder
shell:common startupAll-users Startup folder
shell:sendtoSendTo menu folder

The shell: prefix is one of the most useful modern additions. Typing shell: followed by a known folder name opens special locations that have no fixed path, such as shell:startup for the per-user autostart folder.

Step-by-step: create your own Run command for any app

Browsers and other third-party programs are not Run commands by default. To make one work, register an App Path so the system can find the executable by a short name.

  1. Open the Registry Editor with regedit (elevated).
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths.
  3. Create a new key named after the command you want, for example firefox.exe.
  4. Set the key's (Default) value to the full path of the program, such as C:\Program Files\Mozilla Firefox\firefox.exe.
  5. Optionally add a string value named Path pointing to the program's folder so it finds its own DLLs.
  6. Close regedit. Now Win + R, type firefox, and it launches.

A simpler, registry-free alternative is to drop a shortcut into a folder that is on your PATH environment variable, or to add the program's folder to PATH via sysdm.cpl → Advanced → Environment Variables.

Common pitfalls to avoid

  • Expecting browser aliases to work out of the box. firefox and iexplore are not built-in; Internet Explorer itself is retired and redirects to Microsoft Edge on Windows 11.
  • Using removed XP-era commands. clipbrd, drwtsn32, winchat, sysedit, syskey, and dfrg.msc simply error out. Use the modern equivalents listed above.
  • Forgetting elevation. Snap-ins like secpol.msc or commands like sfc /scannow need administrator rights, or they fail silently or with access-denied errors.
  • Edition mismatches. gpedit.msc and lusrmgr.msc are missing on Windows Home; do not assume they exist on every PC you support.
  • Typing destructive commands without switches. diskpart and chkdsk are powerful; always know the target disk before issuing write operations.

How to verify a command worked

  1. After pressing Enter, confirm the expected window or tool opens. If nothing happens, the command is wrong or the tool is not installed on that edition.
  2. For folder shortcuts, check that the File Explorer title bar shows the resolved path. If Run reports it cannot find the item, the environment variable may be undefined in that session.
  3. For an elevated snap-in, look for the User Account Control prompt; if it never appeared and the tool shows read-only or greyed-out options, you launched it without admin rights.
  4. To confirm an executable exists before relying on it, run where toolname in Command Prompt; it prints the full path or reports that the file was not found.

Key Takeaways

  • Win + R plus a short command is the fastest way to reach any Windows tool, folder, or Control Panel applet.
  • The most valuable sysadmin commands are the MMC snap-ins: compmgmt.msc, devmgmt.msc, services.msc, eventvwr.msc, and diskmgmt.msc.
  • Many XP-era commands are dead; use modern replacements such as dfrgui, ncpa.cpl, main.cpl, netplwiz, and taskschd.msc.
  • Environment-variable shortcuts like %temp% and %appdata%, plus the shell: prefix, open paths that differ from machine to machine.
  • Browsers and third-party apps need an App Paths registry entry or a PATH addition before they respond to a Run command.

Frequently Asked Questions

How do I open the Run dialog in Windows 11?

Press Win + R anywhere in Windows. You can also right-click the Start button and choose Run, or search for "Run" in the Start menu. The shortcut works identically across Windows 10 and Windows 11.

Why does my Run command say Windows cannot find the file?

The executable either does not exist on your edition (for example gpedit.msc on Windows Home), has been retired (like clipbrd or dfrg.msc), or is a third-party app that has no registered App Path. Verify the correct modern command or register the program in the App Paths registry key.

Do Run commands work in Command Prompt and PowerShell?

Most do, because they are real executables on the system PATH. You can type notepad, services.msc, or %temp% in CMD or PowerShell and they launch the same target. The File Explorer address bar and the Start menu search box also accept these commands.

How do I run a command as administrator from the Run box?

Type the command, then press Ctrl + Shift + Enter instead of plain Enter to launch it elevated. You will see a User Account Control prompt; approve it to get full administrative access for tools like regedit or secpol.msc.

For more Windows tips and walkthroughs, subscribe to @explorenystream on YouTube.