PowerShell is the most underused tool on a Windows PC. Most people only know it as a shell for administrators and automation scripts, but it is also one of the fastest ways to diagnose the issues that slow a machine down or make it unreliable. A failing disk, a runaway process, a flaky network connection, or a baffling startup failure — the right cmdlet gives you a clear, repeatable answer that the graphical tools often hide behind layers of menus.
The six commands below turn a frustrated troubleshooting session into a structured one. Open PowerShell, use an elevated (Administrator) window for any command that touches system state, and work through them in order. Each one targets a different layer of the system, so together they cover most of the problems a Windows user actually runs into.
1. Check disk health with Get-PhysicalDisk
The earliest warning sign of a hard drive dying is a health flag, yet Windows rarely tells you exactly which physical disk is degrading. Get-PhysicalDisk lists every disk and reports its health status, so you can see at a glance which one is the problem. On a machine with several drives, narrow the output to only the failing ones:
Get-PhysicalDisk | Where-Object { $_.HealthStatus -ne 'Healthy' }
Once you have the friendly name of the bad drive, you can even light up its front-panel LED indicator to locate the exact physical unit in a multi-bay system. Swapping a disk before it fails outright is one of the most valuable things PowerShell lets you do for data safety.

2. Find the processes slowing your PC down
Get-Process lists every running process along with the resources it is consuming. Sorting the output tells you immediately who is eating the most CPU:
Get-Process | Sort-Object CPU -Descending
And this shows which processes are holding the most memory:
Get-Process | Sort-Object WorkingSet -Descending
When you need to know how long a specific command or script takes to run, wrap it in Measure-Command to get an accurate execution-time reading instead of a guess.

3. Test network connectivity
Test-Connection sends ICMP pings to a target host, which is the quickest way to confirm whether your system can reach another device on the local network or out on the internet. For a more complete check, Test-NetConnection combines reachability with DNS resolution, so a failing name lookup is caught in the same step.
To inspect the adapters themselves — link status, negotiated speed, and IP configuration — use Get-NetAdapter, and filter by name (for example, -Name "Ethernet") to focus on a single interface.
4. Read the system event logs
Windows quietly records application failures, service errors, and security events in its event logs, and PowerShell makes them searchable in seconds. Pull the ten most recent application errors with a single line:
Get-EventLog -LogName Application -EntryType Error -Newest 10
Reading the exact logged error is the difference between guessing at a fault and fixing the one that actually happened.
5. Boot straight into the BIOS / UEFI firmware
Diagnosing hardware or early-startup problems almost always means reaching the firmware settings, and the old trick of hammering F2, Del, or Esc at boot is easy to miss. On a UEFI-capable machine, PowerShell can schedule a restart that opens the BIOS/UEFI setup screen automatically. Open an elevated PowerShell window and run the boot-setting command, and the next start drops straight into the firmware menu — no key-timing required.
6. Search folders with Get-ChildItem
If you have been typing dir in the classic command prompt, you were already running an alias for Get-ChildItem. The cmdlet lists the contents of a folder, and with the -Recurse flag it walks every subfolder beneath it. Because it also works on ‘containers’ beyond plain directories — registry keys, certificate stores and other providers — it is a surprisingly powerful way to hunt down a misplaced file or to diagnose file-system-related issues and bottlenecks.
Three habits that make PowerShell more useful
Run from an elevated window whenever a command changes system state. Pipe long output into Sort-Object or Where-Object so you are reading the interesting lines instead of scrolling through hundreds. And save the commands that matter into a small script so the entire diagnosis is repeatable the next time the machine misbehaves.
