Tag: disk-space

210 script(s) tagged “disk-space”

🖥️ Batch (CMD)

Get Physical Disk Drives Report (Batch)

Uses wmic to list Physical Disk Drives (Win32_DiskDrive) straight from the command line.

🖥️ Batch (CMD)

Clean Up The pip download cache (Batch)

Clears the pip download cache after a confirmation prompt, with a /silent mode for scheduled tasks.

📊 VBA (Excel)

Report Size of The current user's Temp folder (VBA)

Reports the total size and top-level file count of the current user's Temp folder using Scripting.FileSystemObject, str…

⚡ PowerShell 5.1+

Get Stuck print spooler files Size Report

Reports how much disk space stuck print spooler files is currently using, read-only (no deletion).

📊 VBA (Excel)

Load Logical Disks into Excel via WMI

Queries Win32_LogicalDisk via GetObject("winmgmts:") and dumps every Logical Disks row straight onto the active workshe…

🧬 WQL / PowerShell

Win32_LogicalDisk: Sorting Logical Disks (WQL has no ORDER BY)

WQL has no ORDER BY clause — this shows the standard workaround of piping Get-CimInstance results through Sort-Object o…

🧬 WQL / PowerShell

Win32_DiskDrive: Querying Physical Disk Drives Remotely (CIM Session)

Runs the same Win32_DiskDrive WQL query against a remote computer over a CIM session — the modern, WinRM-based replacem…

🖥️ Batch (CMD)

Export Logical Disks to CSV (Batch)

Uses wmic to export Logical Disks (Win32_LogicalDisk) to a timestamped CSV file.

⚡ PowerShell 5.1+

Watch Physical Disk Drives for Changes

Polls Win32_DiskDrive on an interval and prints a line whenever the Physical Disk Drives count changes — a lightweight …

📊 VBA (Excel)

Export Physical Disk Drives to CSV via WMI (VBA)

Queries Win32_DiskDrive via WMI and writes every Physical Disk Drives row straight to a CSV file in Documents, using pl…

📜 VBScript (WSH)

Get The Windows Update download cache Size Report (VBScript)

Recursively sums the size of the Windows Update download cache, read-only (no deletion).

🖥️ Batch (CMD)

Clean Up The system-wide Windows Temp folder (Batch)

Clears the system-wide Windows Temp folder after a confirmation prompt, with a /silent mode for scheduled tasks.