Laptop Feeling Sluggish? Try These 5 PowerShell Scripts to Speed Things Up!
Is your laptop crawling like it's stuck in molasses? Before you toss it out or start blaming your Wi-Fi, try these 5 easy PowerShell scripts that can breathe new life into your machine.
No need for third-party apps. Just use what Windows already has!
🧹 1. Clean Up Temporary Files
You can free up space by clearing out junk files like this:
Remove-Item -Path "$env:TEMP\*" -Recurse -Force Remove-Item -Path "C:\Windows\Temp\*" -Recurse -Force
🧼 This deletes temporary files from your system and user folders.
🚀 2. Disable Unnecessary Startup Programs
Check which apps launch at startup:
Get-CimInstance Win32_StartupCommand | Select-Object Name, Command
🎯 Identify the apps you don’t need and disable them via Task Manager → Startup.
🧠 3. Free Up RAM (Memory Flush)
Clear unused memory to make your system snappier:
[System.GC]::Collect() [System.GC]::WaitForPendingFinalizers() [System.GC]::Collect()
⚡ This tells Windows to clear out unused managed memory.
🛡️ 4. Scan for System Errors & Malware
Fix system file issues and check for malware:
Step 1:
sfc /scannow
Step 2:
DISM /Online /Cleanup-Image /RestoreHealth
Optional Defender Scan:
Start-MpScan -ScanType QuickScan
🛠️ These commands fix broken system files and scan for threats.
⚡ 5. Turn On Ultimate Performance Mode
Unlock maximum speed on supported systems:
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
🔥 After running this, go to Power Options and switch to "Ultimate Performance".
🔄 Bonus: Restart Windows Explorer
Sometimes all you need is a soft reset:
Stop-Process -Name explorer -Force Start-Process explorer
🔁 This restarts your desktop interface without rebooting the whole system.
🧪 Optional: One-Click Speed-Up Toolkit
Want to run multiple fixes in one go? Try this script:
# Clean junk Remove-Item "$env:TEMP\*" -Recurse -Force Remove-Item "C:\Windows\Temp\*" -Recurse -Force # Fix system sfc /scannow # Optimize memory [System.GC]::Collect() [System.GC]::WaitForPendingFinalizers() # Restart explorer Stop-Process explorer -Force Start-Process explorer
📌 Save this as SpeedUp.ps1
and run it as Administrator.
🧭 Final Tips
PowerShell is powerful, but don’t forget to:
- Restart your laptop regularly
- Keep Windows and drivers updated
- Uninstall apps you never use
- Use SSDs if possible
- Avoid having 50+ Chrome tabs open 😅
Post a Comment