Tag: performance

35 script(s) tagged “performance”

🧬 WQL / PowerShell

Win32_PageFileUsage: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_PageFileUsage via Register-CimIndicationEvent β€” real WQL event qu…

πŸ“Š VBA (Excel)

List Files in The Windows Prefetch folder (VBA)

Lists every file in the Windows Prefetch folder with size and last-modified date directly on the active worksheet, usin…

🧬 WQL / PowerShell

Win32_PageFileUsage: Page File Usage (WQL)

A minimal WQL reference query against Win32_PageFileUsage β€” the raw SELECT statement plus a one-line runner, useful for…

⚑ PowerShell 5.1+

Backup The Windows Prefetch folder to Zip

Zips up the current contents of the Windows Prefetch folder before you run a cleanup against it.

πŸ“œ VBScript (WSH)

Get Page File Usage Report (VBScript)

Queries Win32_PageFileUsage via WMI and prints Page File Usage to the console β€” no PowerShell required.

🐍 Python 3.10+

Backup The Windows Prefetch folder to Zip (Python)

Zips up the current contents of the Windows Prefetch folder before you run a cleanup against it.

⚑ PowerShell 5.1+

Backup Page File Usage List to JSON

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

πŸ“Š VBA (Excel)

Clean Up The Windows Prefetch folder (VBA)

Deletes every file in the Windows Prefetch folder after a confirmation prompt, using Scripting.FileSystemObject from Ex…

πŸ“œ VBScript (WSH)

Get The Windows Prefetch folder Size Report (VBScript)

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

🧬 WQL / PowerShell

Win32_PageFileUsage: Finding Associated Objects (WQL ASSOCIATORS OF)

Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_PageF…

🧬 WQL / PowerShell

Win32_PageFileUsage: Querying Page File Usage Remotely (CIM Session)

Runs the same Win32_PageFileUsage WQL query against a remote computer over a CIM session β€” the modern, WinRM-based repl…