Post

Windows Cheat Sheet

A quick reference for Windows tools and commands used for troubleshooting and system management.

Windows Cheat Sheet

There are several constants in our universe, such as the gravitational constant, the speed of light, and Windows’ search returning results inversely proportional to their relevance.

To bypass this eternal frustration, here’s a collection of commands to help you quickly access Windows configuration tools and get things done.

GUI

Commands to directly open Windows management graphical interfaces and panels which usually require lots of navigation to get to. It is recommended to launch these via Run (Win+R) to avoid the start menu launching an unhelpful Bing search.

ExecutableNamePurpose
mmc.exeMicrosoft Management ConsoleLaunch ‘Device Manager’, ‘Group Policy Editor’, ‘Services’, ‘Task Scheduler’
devmgmt.mscDevice ManagerView and manage device hardware settings and driver software installed on your computer
gpedit.mscGroup Policy EditorEdit the local Group Policy Objects stored on a computer
ncpa.cplNetwork ConnectionsControl panel network adapters / connections
services.mscServicesStart, stop, and configure Windows services
taskschd.exeTask SchedulerSchedule computer tasks to run automatically
lusrmgr.mscLocal user managerManage local users and groups
systempropertiesadvancedSystem properties advancedManage hostname, domain, workgroup

CLI

Command-line tools which can be run from Command Prompt or PowerShell. Launch Command Prompt via Run (Win+R then type cmd).

CommandPurpose
dism /Online /Cleanup-image /RestorehealthScan the image for component store corruption and perform repair operations automatically
sfc /scannowScans integrity of all protected system files and repairs files with problems when possible
shutdown -t 0 -r -oBoot into Windows Recovery
shutdown -t 0 -r -fwBoot into UEFI/BIOS
netsh wlan show profiles name='SSID' key=clearView saved WiFi password
netsh interface ipv4 set addressSet adapter IP address
netsh interface ipv4 show interfacesList interface status
oobe\bypassnroPress Shift + F10 within Windows 11 installer to launch terminal and skip Microsoft account requirement with this command
wmic path SoftwareLicensingService get OA3xOriginalProductKeyView Windows 10/11 product key / license key

PowerShell

Command-line tools which are only supported by PowerShell. Launch PowerShell via Run (Win+R then type powershell).

CommandPurpose
Get-SmbConnectionList SMB network shares more reliably than via net use
(New-Object -com "WMPlayer.OCX.7").cdromcollection.item(0).eject()Eject optical disc tray. Easily locate a computer in a server room
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -Type DWord -Value 1Enable long paths on Windows 10/11

For more Windows command line utilities, see Windows & POSIX CLI Reference

This post is licensed under CC BY 4.0 by the author.