A thread · 12 notes · Script Library
Spring cleaning for Windows PCs.
Disk space, old profiles, stale OST files, stuck print jobs and the other gunk that piles up.
- 1
A Safer Windows Disk Cleanup Script
Clear old temp files from the usual suspects and run Disk Cleanup unattended, with an age threshold and a -WhatIf that shows how much you'd get back.
- 2
Removing Stale Windows User Profiles the Right Way
Clean old user profiles off shared PCs and servers through Win32_UserProfile, so the folder and the registry entry go together and nobody gets a TEMP profile.
- 3
Cleaning Up Abandoned Outlook OST Files
Find the old Outlook .ost files nobody is using any more and reclaim the space, without touching the ones Outlook has open.
- 4
Emptying the Recycle Bin from PowerShell, Quietly
Empty the Recycle Bin with no prompt, for one user or everyone on the machine, and optionally keep anything deleted recently.
- 5
Clearing a Stuck Print Spooler with PowerShell
Stop the spooler, clear out the wedged job files, and bring it back up, with -WhatIf and an option to leave recent jobs alone.
- 6
Flushing the DNS Cache on One PC or Fifty
Clear the Windows DNS client cache locally or across a list of machines, and know when a flush will actually fix anything.
- 7
Checking (and Nudging) Google Chrome Updates with PowerShell
Find out which Chrome version a machine is really running, whether an update is stuck waiting on a restart, and kick Google's updater into checking now.
- 8
A Polite Restart Reminder for PCs That Never Reboot
A small Windows Forms pop-up that appears at logon when a PC has been up for more than a week, with a Later button and a Restart now button that asks before it does anything.
- 9
DISM, Then SFC: Repairing Windows in the Right Order
Take a restore point, repair the component store with DISM, then run SFC, and get one object back that says what each step found instead of three screens of scrolling text.
- 10
Close Everything Before a Game, Without Killing Windows
Politely close your open apps (and, if you ask, tray apps and named services) to free up memory before a game or a long render, while Windows, your security software and the terminal you're typing in stay put.
- 11
Too Many Sync Icons? Taming Explorer's 15 Overlay Handler Limit
List every icon overlay handler in the order Explorer loads them, see which ones fall past the 15-slot limit, and switch off the ones you don't need, with a registry backup first and an easy way back.
- 12
Clear Browser Caches for Every Profile, Without Touching Cookies
Empty the disk caches for Chrome, Edge, Brave, Opera and Firefox across every browser profile, and see how much space each one gave back, while cookies, history and passwords stay put.