Tag: performance

35 script(s) tagged “performance”

🟣 C# / .NET 6+

Backup Page File Usage to JSON (C#)

Snapshots Page File Usage (Win32_PageFileUsage) to a timestamped JSON file via System.Management and System.Text.Json.

🧬 WQL / PowerShell

Win32_PageFileUsage: Sorting Page File Usage (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…

πŸ“Š VBA (Excel)

Export Page File Usage to CSV via WMI (VBA)

Queries Win32_PageFileUsage via WMI and writes every Page File Usage row straight to a CSV file in Documents, using pla…

🐍 Python 3.10+

Export Page File Usage to CSV (Python)

Exports Page File Usage (Win32_PageFileUsage) to a timestamped CSV file via wmic.

πŸ–₯️ Batch (CMD)

Clean Up The Windows Prefetch folder (Batch)

Clears the Windows Prefetch folder after a confirmation prompt, with a /silent mode for scheduled tasks.

πŸ–₯️ Batch (CMD)

Get Page File Usage Report (Batch)

Uses wmic to list Page File Usage (Win32_PageFileUsage) straight from the command line.

🐍 Python 3.10+

Backup Page File Usage to JSON (Python)

Snapshots Page File Usage (Win32_PageFileUsage) to a timestamped JSON file for later comparison or auditing.

πŸ“Š VBA (Excel)

Report Size of The Windows Prefetch folder (VBA)

Reports the total size and top-level file count of the Windows Prefetch folder using Scripting.FileSystemObject, straig…

πŸ“Š VBA (Excel)

Load Page File Usage into Excel via WMI

Queries Win32_PageFileUsage via GetObject("winmgmts:") and dumps every Page File Usage row straight onto the active wor…

⚑ PowerShell 5.1+

Get The Windows Prefetch folder Size Report

Reports how much disk space the Windows Prefetch folder is currently using, read-only (no deletion).

⚑ PowerShell 5.1+

Get Page File Usage Report

Queries Win32_PageFileUsage via WMI and reports Page File Usage in a formatted table, with an optional CSV export.

🟣 C# / .NET 6+

Get The Windows Prefetch folder Size Report (C#)

Recursively sums the size of the Windows Prefetch folder, read-only (no deletion).