Skip to content

Instantly share code, notes, and snippets.

View OldePSN00b's full-sized avatar

OldePSN00b OldePSN00b

View GitHub Profile
@sebastian13
sebastian13 / AdminPrinterDeploy.ps1
Last active February 16, 2024 14:44
How to install printers post PrintNightmare patch
# Deploy this via PDQ Deploy or run once as admin
# Delete all Network Printers
Get-WmiObject -Class Win32_Printer | where{$_.Network -eq 'true'} | ForEach-Object {$_.Delete()}
# Add Driver to the Store
# ... example for Sharp 1910a - 9.1.18.47
pnputil.exe /a "\\nas01\tools\drivers\_Printers\MX_D54_PCL6_PS_1910a_German_64bit\German\PCL6\64bit\su0emdeu.inf"
# Install the Driver