About

About

Copy-paste PowerShell one-liners — by someone who administers Windows boxes and got tired of rebuilding the same pipelines.

PowerShell is the right tool for almost any Windows admin task, but the exact pipeline — Where-Object, Select-Object, calculated properties, the right CIM class — is easy to forget between uses. This site collects the one-liners that actually come up into one library: services and processes, local and AD accounts, event logs, file and network tasks, with a short explanation, the elevation each needs, and the common gotchas.

Commands target Windows PowerShell 5.1 (built into Windows) and PowerShell 7+; where a cmdlet or operator is 7-only, the recipe says so. AD recipes note the RSAT ActiveDirectory module requirement, and slow/risky approaches (like Win32_Product) are avoided in favour of fast, safe ones.

Topics: system info, services, processes, local users, AD lockouts & password expiry, large files, content search, bulk rename, network & firewall, event logs, installed software, and exporting to CSV.