PowerShell commands and fixes
PowerShell commands with working syntax, examples and the errors you are likely to hit, taken from the Microsoft Learn reference.
Fixes
- Fix "running scripts is disabled on this system" in PowerShell
Windows 11, Windows 10, Windows Server, Windows PowerShell 5.1, PowerShell 7 · 5 min
How-tos
- Install PowerShell 7 on Windows with winget or the MSI package
Windows 11, Windows 10 version 1809 or later, Windows Server 2025, PowerShell 7 · 10 min
Commands
- Find large files in PowerShell with Get-ChildItem and Sort-Object
Windows PowerShell 5.1, PowerShell 7 · 5 min
- Stop-Process: find and stop a process in PowerShell
Windows PowerShell 5.1, PowerShell 7 · 3 min
- winget upgrade --all: update all apps at once on Windows
Windows 11, Windows 10 version 1809 or later, Windows Server 2025 · 5 min
- Test-NetConnection: check if a TCP port is open in PowerShell
Windows, Windows Server 2016, Windows Server 2019, Windows Server 2022, Windows Server 2025 · 3 min