Tag: printers

35 script(s) tagged “printers”

πŸ“œ VBScript (WSH)

Get Printers Report (VBScript)

Queries Win32_Printer via WMI and prints Printers to the console β€” no PowerShell required.

🟣 C# / .NET 6+

Backup Printers to JSON (C#)

Snapshots Printers (Win32_Printer) to a timestamped JSON file via System.Management and System.Text.Json.

πŸ“Š VBA (Excel)

Export Printers to CSV via WMI (VBA)

Queries Win32_Printer via WMI and writes every Printers row straight to a CSV file in Documents, using plain VBA file I…

🟣 C# / .NET 6+

Get Stuck print spooler files Size Report (C#)

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

🧬 WQL / PowerShell

Win32_Printer: Sorting Printers (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…

⚑ PowerShell 5.1+

Watch Printers for Changes

Polls Win32_Printer on an interval and prints a line whenever the Printers count changes β€” a lightweight way to notice …

🐍 Python 3.10+

Clean Up Stuck print spooler files (Python)

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

🐍 Python 3.10+

Get Printers Report (Python)

Uses wmic under the hood to report Printers (Win32_Printer) β€” no third-party packages required.

🧬 WQL / PowerShell

Win32_Printer: Querying Printers Remotely (CIM Session)

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

🧬 WQL / PowerShell

Win32_Printer: Filtering Printers (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_Printer, starting from a LIKE '%' wildcard you customize with a real se…

πŸ“œ VBScript (WSH)

Get Stuck print spooler files Size Report (VBScript)

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