Skip to content

Instantly share code, notes, and snippets.

View DrEmpiricism's full-sized avatar

Ben DrEmpiricism

  • Midwest, USA
View GitHub Profile
@DrEmpiricism
DrEmpiricism / Start-WindowsCleanup.ps1
Last active October 14, 2024 22:30
Clean-up system clutter and reclaim disk space
Function Start-WindowsCleanup
{
<#
.SYNOPSIS
`Start-WindowsCleanup` cleans-up a system clutter and reclaims disk space.
.DESCRIPTION
The `Start-WindowsCleanup` cmdlet performs the following clean-up tasks to reclaim disk space:
Clears the contents of common directories of the Windows file system for both the current running user and the global system that are used to store temporary, logging, backup, cache and dump files.