Tag: printers

35 script(s) tagged “printers”

🧬 WQL / PowerShell

Win32_Printer: Discovering Available Properties (Get-CimClass)

Uses Get-CimClass to list every real property and method Win32_Printer exposes on the current system, instead of guessi…

🐍 Python 3.10+

Backup Stuck print spooler files to Zip (Python)

Zips up the current contents of stuck print spooler files before you run a cleanup against it.

πŸ“Š VBA (Excel)

List Files in Stuck print spooler files (VBA)

Lists every file in stuck print spooler files with size and last-modified date directly on the active worksheet, using …

⚑ PowerShell 5.1+

Clean Up Stuck print spooler files

Reports the size of stuck print spooler files and optionally clears it out. Dry-run by default.

🐍 Python 3.10+

Backup Printers to JSON (Python)

Snapshots Printers (Win32_Printer) to a timestamped JSON file for later comparison or auditing.

πŸ–₯️ Batch (CMD)

Clean Up Stuck print spooler files (Batch)

Clears stuck print spooler files after a confirmation prompt, with a /silent mode for scheduled tasks.

πŸ“Š VBA (Excel)

Load Printers into Excel via WMI

Queries Win32_Printer via GetObject("winmgmts:") and dumps every Printers row straight onto the active worksheet, no Po…

🧬 WQL / PowerShell

Win32_Printer: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🐍 Python 3.10+

Get Stuck print spooler files Size Report (Python)

Recursively sums the size of stuck print spooler files, read-only (no deletion).

πŸ“„ JScript (WSH)

Get Printers Report (JScript)

Queries Win32_Printer via WMI and prints Printers to the console β€” JScript, VBScript's WSH sibling language.

🧬 WQL / PowerShell

Win32_Printer: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_Printer via Register-CimIndicationEvent β€” real WQL event query sy…

⚑ 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).