Useful Run Commands

Here are some useful run commands

Can be run from the Run window

capture

Or CMD prompt

capture

Windows Function Run Command
Add Hardware Wizard hdwwiz
Adding a new Device devicepairingwizard
Advanced User Accounts azman.msc
Advanced User Accounts netplwiz
Backup and Restore sdclt
Calculator calc
Certificates certmgr.msc
Character Map charmap
ClearType Tuner cttune
Color Management colorcpl
Command Prompt cmd
Component Services comexp.msc
Component Services dcomcnfg
Computer Management compmgmt.msc
Computer Management compmgmtlauncher
Connect to a Projector displayswitch
Control Panel control
Credential Backup and Restore Wizard credwiz
Data Execution Prevention systempropertiesdataexecutionprevention
Date and Time timedate.cpl
Device Manager hdwwiz.cpl
Diagnostics Troubleshooting Wizard msdt
Digitizer Calibration Tool tabcal
DirectX Diagnostic Tool dxdiag
Disk Cleanup cleanmgr
Disk Defragmenter dfrgui
Disk Management diskmgmt.msc
Display dpiscaling
Display Color Calibration dccw
DPAPI Key Migration Wizard dpapimig
Driver Verifier Manager verifier
Ease of Access Center utilman
Event Viewer eventvwr.msc
Fax Cover Page Editor fxscover
Game Controllers joy.cpl
Getting Started irprops.cpl
IExpress Wizard iexpress
Internet Explorer iexplore
Internet Options inetcpl.cpl
Language Pack Installer lpksetup
Local Users and Groups lusrmgr.msc
Magnifier magnify
Malicious Software Removal Tool mrt
Math Input Panel mip
Microsoft Management Console mmc
Mouse main.cpl
NAP Client Configuration napclcfg.msc
Narrator narrator
Network Connections ncpa.cpl
New Scan Wizard wiaacmgr
Notepad notepad
ODBC Data Source Administrator odbcad32
On-Screen Keyboard osk
Open Documents Folder documents
Open Downloads Folder downloads
Open Favorites Folder favorites
Open Pictures Folder pictures
Open Recent Folder recent
Open Videos folder videos
Paint mspaint
Pen and Touch tabletpc.cpl
People Near Me collab.cpl
Performance Monitor perfmon.msc
Performance Options systempropertiesperformance
Phone and Modem telephon.cpl
Phone Dialer dialer
Power Options powercfg.cpl
Printer User Interface printui
Private Character Editor eudcedit
Problem Steps Recorder psr
Programs and Features appwiz.cpl
Region and Language intl.cpl
Registry Editor regedit
Remote Access Phonebook rasphone
Remote Desktop Connection mstsc
Resource Monitor resmon
SAM Lock Tool syskey
Screen Resolution desk.cpl
Services services.msc
Set Program Access and Computer Defaults computerdefaults
Share Creation Wizard shrpubw
Shared Folder Wizard shrpubw
Shared Folders fsmgmt.msc
Snipping Tool snippingtool
Sound mmsys.cpl
Sound recorder soundrecorder
SQL Server Client Network Utility cliconfg
Sticky Notes stikynot
Sync Center mobsync
System Configuration msconfig
System Configuration Editor sysedit
System Information msinfo32
System Properties sysdm.cpl
System Properties (Advanced Tab) systempropertiesadvanced
System Properties (Hardware Tab) systempropertieshardware
System Properties (Remote Tab) systempropertiesremote
System Properties (System Protection Tab) systempropertiesprotection
System Restore rstrui
Task Manager taskmgr
Task Scheduler taskschd.msc
Taskbar and Start Menu control.exe /name Microsoft.TaskbarandStartMenu
Troubleshooting control.exe /name Microsoft.Troubleshooting
Trusted Platform Module (TPM) Management tpm.msc
User Account Control Settings useraccountcontrolsettings
User Accounts control.exe /name Microsoft.UserAccounts
Utility Manager utilman
Version Reporter Applet winver
Volume Mixer sndvol
Windows Action Center wscui.cpl
Windows Activation Client slui
Windows Anytime Upgrade WindowsAnytimeUpgradeui
Windows Anytime Upgrade Results windowsanytimeupgraderesults
Windows Disc Image Burning Tool isoburn
Windows DVD Maker dvdmaker
Windows Easy Transfer migwiz
Windows Explorer explorer
Windows Fax and Scan wfs
Windows Features optionalfeatures
Windows Firewall firewall.cpl
Windows Journal journal
Windows Media Player wmplayer
Windows Memory Diagnostic Scheduler mdsched
Windows Mobility Center mblctr
Windows PowerShell powershell
Windows PowerShell ISE powershell_ise
Windows Remote Assistance msra
Windows Repair Disc recdisc
Windows Script Host wscript
Windows Update wuapp
Windows Update Standalone Installer wusa
WMI Management wmimgmt.msc
WordPad write
XPS Viewer xpsrchvw

Windows Environment Commands

Windows Environment Commands

These are my most frequently used, often to just get to a location on the SystemRoot quickly. None of these are case sensistive

%USERPROFILE% - Equivalent of ~ on *nix systems.
%WINDIR% - Windows Directory although it seems to hav ebeen superseded by %SystemRoot%
%APPDATA% - Goes to the roaming folder
%LOCALAPPDATA% - goes to the local folder
%LOGONSERVER% -  goes to \\domain_logon_server
%PROGRAMFILES% - C:\Program Files
%PROGRAMFILES(X86)% - C:\Program Files (x86)
%PSModulePath% - Powershell Modules Path

System File Checker

Sometimes files get corrupted

System File checker needs an CMD (Administrator) prompt to run

sfc /scannow

When running outside of windows in a recovery or system restore environment (WinPE) the location of the windows folder must be specified.

Just remember to check the drive letters!

sfc /scannow /offbootdir=C:\ /offwindir=C:\windows

Create a List of installed Software

This time using powershell a list of software can be output to OUT-GridView

Particularly useful to just check remotely or silently using a remote command line. Several ways to output this

1.To WMI Gridview

Get-WmiObject -Class Win32_Product | Select-Object -Property Name, Vendor, InstallDate, Language, Version | Out-GridView

2. To the Screen

Get-WmiObject -Class Win32_Product | Select-Object -Property Name, Vendor, InstallDate, Language, Version

3. To a Text file

Get-WmiObject -Class Win32_Product | Select-Object -Property Name, Vendor, InstallDate, Language, Version 
| Out-File result.txt

Settings from the run command

Windows Settings

Windows 8.1 through to Windows 10 configuration settings can be tricky to find

WIndows 10 has opted to discontinue the use of the control panel in favour of the settings screen.

Sometimes options are deep in the menu structure, however most are searchable.

It can be handy to know some important run commands for certain settings

Here are some useful run commands that are easy to remember and important for basic OS configuration. There are more, but these for me are the most useful.

You can of course search using Cortana and most settings options will show.

Date and Time

ms-settings:dateandtime

Lockscreen

ms-settings:lockscreen

Notifications

ms-settings:notifications

Privacy

ms-settings:privacy

WIndows Update

ms-settings:windowsupdate

Display

ms-settings:display

Network

ms-settings:network

Resetting Windows Update using CMD

Brief

Windows update now does cumulative updates, updating the OS only requires the latest download. This massively saves on download bandwidth for machines not connected to a WSUS server.

However when using RMM software sometimes the patch handling does not synchronise correctly, or asks for approval of older updates.

The Software Distribution folder is always best left alone, however under exceptional circumstances, it can be deleted or renamed. Files will automatically get downloaded for WU components. However you will loose windows update historyalthough now that updates are cumulative, all previous patches are included anyway!

Resetting Windows Update

Here is a quick and easy solution

  1. Run an eleveted cmd prompt
  2. Stop the windows update service
    net stop wuauserv
  3. Rename the Software Distribution folder
    rename c:\windows\SoftwareDistribution SoftwareDistributionOLD
  4. Start the windows update service
    net start wuauserv
  5. Force a check and update – Note this only works if auto updates are enabled
    wuauclt.exe /detectnow /updatenow

 

More info on the wuauclt command can be found:

http://ss64.com/nt/wuauclt.html