Enterprise Windows Administration Cheatsheet

Essential Shortcuts, Run Snap-ins, Diagnostic CMDs, PowerShell Cmdlets & Event IDs

⌨️ Essential Windows OS Shortcuts
Win + R
Run Command Dialog
SysAdmin Context: Primary shortcut to launch MSC snap-ins, CPL control panel applets, CMD, or PowerShell directly.
Win + X
Power User / Quick Link Menu
SysAdmin Context: Opens high-level admin shortcuts: Terminal (Admin), Device Manager, Disk Management, Event Viewer, and System.
Ctrl + Shift + Esc
Task Manager Direct Launch
SysAdmin Context: Directly opens Task Manager without passing through the Security Interrupt screen (`Ctrl + Alt + Delete`).
Win + L
Lock Computer Workstation
SysAdmin Context: Immediately locks active user desktop session to comply with Clear Screen security policies.
Win + E
Open Windows File Explorer
SysAdmin Context: Launches File Explorer to access local volumes, network shares (`\\Server\Share`), and drive mappings.
Win + Pause / Break
Open System About Info
SysAdmin Context: Quickly displays system properties: Computer Name, Domain join status, RAM, Processor, and OS edition.
Crucial Windows Run Commands (.msc & .cpl)
ncpa.cpl
Network Connections
Usage: Opens Network Connections control panel applet directly to configure IP properties, DNS servers, and network adapters.
sysdm.cpl
System Properties (Domain Join / Host Name)
Usage: Used to change Computer Hostname, join or unjoin Active Directory Domain, and manage Environment Variables.
services.msc
Windows Services Manager
Usage: Manages background Windows service startup types (Automatic, Manual, Disabled) and service state execution (Start/Stop/Restart).
dsa.msc
Active Directory Users and Computers (ADUC)
Usage: Primary RSAT tool for managing domain users, resetting passwords, unlocking accounts, managing groups, and moving OUs.
devmgmt.msc
Device Manager
Usage: Inspects physical hardware status, updates or rolls back drivers, and diagnoses missing hardware driver code errors.
diskmgmt.msc
Disk Management
Usage: Initializes new physical drives, creates/formats partitions (NTFS/ReFS), assigns drive letters, and extends volumes.
eventvwr.msc
Event Viewer Logs
Usage: Inspects System, Application, and Security diagnostic event logs generated by Windows OS and services.
gpedit.msc / gpmc.msc
Local Group Policy / GPO Console
Usage: gpedit.msc modifies local machine policy; gpmc.msc manages domain-wide Group Policy Objects linked across OUs.
appwiz.cpl
Programs and Features (Add/Remove)
Usage: Legacy Control Panel applet to uninstall software, repair installations, and view installed updates.
compmgmt.msc
Computer Management Console
Usage: Consolidated console bundling Task Scheduler, Event Viewer, Shared Folders, Local Users & Groups, Device Manager, and Disk Management.
🛠️ Core Command Prompt (CMD) Diagnostic Commands
sfc /scannow
System File Checker
Command & Usage:
sfc /scannow
Scans protected Windows system files and replaces corrupted binaries using clean cached copies.
DISM Image Repair
Component Store Image Servicing
Command & Usage:
DISM /Online /Cleanup-Image /RestoreHealth
Repairs the Windows Component Store (WinSxS) image using online Windows Update sources prior to running SFC.
ipconfig Commands
IP Configuration & DNS Flush
Command & Usage:
ipconfig /all
ipconfig /flushdns
ipconfig /release && ipconfig /renew
Displays detailed adapter settings, clears local DNS resolver cache, and requests a fresh DHCP IP lease.
chkdsk C: /f /r
Check Disk Storage Repair
Command & Usage:
chkdsk C: /f /r
Fixes disk volume file system errors (`/f`) and locates physical bad sectors, recovering readable data (`/r`).
netsh winsock reset
Reset TCP/IP Winsock Catalog
Command & Usage:
netsh winsock reset && netsh int ip reset
Resets the Windows TCP/IP network stack back to clean default settings to resolve corrupted socket connection loops.
net user / net localgroup
Local User Account Management
Command & Usage:
net user username newpassword /add
net localgroup Administrators username /add
Creates a new local user account and elevates account membership into local Administrators group.
Essential PowerShell Cmdlets for Administration
Test-NetConnection
Test Network & Port Connectivity
Cmdlet Syntax:
Test-NetConnection -ComputerName "Server01" -Port 445
Evaluates IP routing and tests if target TCP port (e.g. 445 SMB, 3389 RDP, 88 Kerberos) is open across firewalls.
gpupdate /force
Force Group Policy Refresh
Cmdlet Syntax:
gpupdate /force
Forces an immediate re-evaluation and application of Computer and User Group Policy Objects from Domain Controllers.
Get-ADUser / Unlock-ADAccount
Active Directory Account Management
Cmdlet Syntax:
Get-ADUser -Identity "username" -Properties *
Unlock-ADAccount -Identity "username"
Queries detailed AD user attributes and immediately unlocks a locked domain user account.
Invoke-Command (PSRemoting)
Execute Commands Remotely at Scale
Cmdlet Syntax:
Invoke-Command -ComputerName "Server01", "Server02" -ScriptBlock { Get-Service wuauserv }
Executes PowerShell script blocks on remote target systems over WinRM (Port 5985/5986) simultaneously.
Test-ComputerSecureChannel
Test & Repair Domain Trust Relationship
Cmdlet Syntax:
Test-ComputerSecureChannel -Repair
Tests and repairs broken secure channel trust relationship between a domain workstation and the Domain Controller.
🔎 Critical Windows Event IDs for Event Viewer Analysis
Event ID 4624
Successful User Logon
Event Context: Logs successful account authentication. Inspect Logon Type (Type 2 = Interactive, Type 3 = Network, Type 10 = RDP).
Event ID 4625
Failed User Logon Attempt
Event Context: Logs failed login attempts. Key error codes: 0xC000006A (Bad Password), 0xC0000234 (Account Locked).
Event ID 4740
User Account Locked Out
Event Context: Triggers when an account hits bad password threshold limits. Inspect Caller Computer Name field to locate old cached credentials.
Event ID 7045
A Service Was Installed in the System
Event Context: Logs creation of new Windows background services. Used to detect software installs, remote execution tools (PsExec), or rootkits.
Event ID 1000 / 1002
Application Crash / Application Hang
Event Context: Logged in Application Log when a program crashes (`1000`) or hangs (`1002`). Identifies faulting module DLL paths.