Windows
Lock RDP session
rundll32.exe user32.dll,LockWorkStation
wmic Cheat SheetEdit Cheat Sheet
Useful Examples
Getting to know the system
wmic bios get Manufacturer,Name,Version
wmic diskdrive get model,name,freespace,size # physical disks
wmic logicaldisk get name # logical disks
wmic printer list status
wmci printerconfig list
wmic os list brief # Windows version incl. serial
wmic product list brief # installed programs
wmic startup list fullFor interactive mode just run
wmicfrom there use “quit” or “exit” to terminate again.
Process Management
List running processes
Start and Stop
And change priority
Check environment variables
User Management
Updates
Remote Access
Run any command remote, e.g.
Enable RDP
Registry Cheat SheetEdit Cheat Sheet
reg Usage
Remote Access
To dump a remote registry write something like
Netsh Cheat SheetEdit Cheat Sheet
Usage Examples
Wifi Troubleshooting
Interface Configuration
Show/dump/import active config
Static IP
DHCP
DNS
Overwrite currrent DNS config with a single static DNS server
Add DNS servers
Routes
Firewall
Note “netsh firewall” is deprecated since Vista. Use “netsh advfirewall firewall” instead!
CONFIG DUMPING
TOGGLING STATES
CHANGING RULES
WSL Cheat SheetEdit Cheat Sheet
For a thorough description see this heise.de article
Setup
Install WSL from CLI
Enable virtualisation support for WSLv2
Enforce WSLv2 as default
Manage Distros
GUI Setup
Probably easiest is to install GWSL from the MS app store.
Last updated
Was this helpful?