A thread · 7 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.