Washington | 15°C (clear sky)
Four PowerShell One‑Liners That Instantly Fixed My Windows Headaches

Simple PowerShell tricks to rescue a sluggish or broken Windows PC

Tired of endless reboots and cryptic error messages? These four PowerShell commands can heal the most common Windows issues in seconds.

Let’s be honest – every Windows user has that moment when the system just decides to act up. Maybe the Start menu refuses to open, updates get stuck, or the whole PC feels sluggish. Before you go hunting for a fresh install, try a few PowerShell one‑liners. They’re quick, safe, and, in my experience, they work like a charm.

1. Run System File Checker (SFC) from PowerShell
Even though sfc /scannow is technically a cmd.exe command, you can invoke it straight from a PowerShell window. It scans every protected Windows file and replaces any that are corrupted. Open PowerShell as Administrator and type:

sfc /scannow

The scan can take a few minutes, but once it finishes you’ll see a brief report. If it finds issues, it automatically repairs them – no manual file swapping required.

2. Refresh the Windows image with DISM
If SFC reports that it couldn’t fix everything, the next step is to heal the underlying image with DISM (Deployment Imaging Service and Management). Again, run PowerShell as Admin and paste:

DISM /Online /Cleanup-Image /RestoreHealth

This command reaches out to Microsoft’s servers, downloads any missing components, and stitches the image back together. After it completes (it can be a bit slower than SFC), rerun sfc /scannow to confirm everything’s clean.

3. Re‑register all built‑in apps
Nothing is more frustrating than a broken Store, a frozen Calendar, or a non‑responsive Settings app. The fix? Re‑install every built‑in package for all users. In PowerShell, execute:

Get-AppxPackage -AllUsers | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

It sounds like a mouthful, but it essentially tells Windows to reload the manifest for each app. After the command finishes, restart your PC – the apps should spring back to life.

4. Restart Windows Explorer without rebooting
Sometimes the UI itself glitches – taskbar icons disappear, the Start button freezes, or Explorer just hangs. Instead of a full reboot, you can kill and relaunch Explorer directly from PowerShell:

Stop-Process -Name explorer -Force; Start-Process explorer.exe

This does the same thing as pressing Ctrl+Shift+Esc, ending the Explorer task, and starting it again. It’s practically instant, and you get a fresh desktop in seconds.

Give these four commands a try the next time Windows throws a tantrum. They’re safe, they don’t touch your personal files, and they often resolve the most irritating problems without a single reboot.

Comments 0
Please login to post a comment. Login
No approved comments yet.

Editorial note: Nishadil may use AI assistance for news drafting and formatting. Readers can report issues from this page, and material corrections are reviewed under our editorial standards.