Tag: disk-space
210 script(s) tagged “disk-space”
Get Physical Disk Drives Report (Batch)
Uses wmic to list Physical Disk Drives (Win32_DiskDrive) straight from the command line.
Clean Up The pip download cache (Batch)
Clears the pip download cache after a confirmation prompt, with a /silent mode for scheduled tasks.
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…
Get Stuck print spooler files Size Report
Reports how much disk space stuck print spooler files is currently using, read-only (no deletion).
Load Logical Disks into Excel via WMI
Queries Win32_LogicalDisk via GetObject("winmgmts:") and dumps every Logical Disks row straight onto the active workshe…
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…
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…
Export Logical Disks to CSV (Batch)
Uses wmic to export Logical Disks (Win32_LogicalDisk) to a timestamped CSV file.
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 …
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…
Get The Windows Update download cache Size Report (VBScript)
Recursively sums the size of the Windows Update download cache, read-only (no deletion).
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.