Files
2026-10-06 22:20:13 +00:00

953 B

How to use

Simply download the disk_clean.bat file and right click "run as admin"

This will clear through various caches/temp file directories, create a regkey which allows Winblows' built-in Disk Cleanup to be ran with all options ticked, then print the current users on the system, as well as their profile's space

Overview

At work, I have observed a frequently logged ticket level 1 helpdesk technician's often have to deal with is "low disk space" on a user's machine

This script is intended to reduce some of the repetitive manual steps technician's take in a user friendly way

The PowerShell script is executed through a small Batch file wrapper so it can simply be right clicked and ran, as opposed to having to change PowerShell's execution policies through the command line

A regkey is pushed which defines the Windows' Disk Cleanup's first profile