Wes Ellis./ a personal notebook
Technology. Stories. Side projects.
A few things worth writing down.

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. 1
    Script Library2 min read · Script

    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. 2
    Script Library2 min read · Script

    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. 3
    Script Library2 min read · Script

    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. 4
    Script Library2 min read · Script

    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. 5
    Script Library2 min read · Script

    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. 6
    Script Library2 min read · Script

    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. 7
    Script Library2 min read · Script

    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.