https://docs.microsoft.com/en-us/powershell/module/printmanagement/get-printer?view=win10-ps
https://docs.microsoft.com/en-us/powershell/module/printmanagement/add-printer?view=win10-ps
#Fine and Dandy for Local Server, but what if I want to check \\Server\NABV001? $printservers = @($DEFSERVER,$DUPSERVER) $printservers | ForEach-Object { $printercheckboool = Get-Printer -Name $_ -ErrorAction SilentlyContinue IF (!$printercheckboool) { ECHO "$_ PRINTER_NOT_FOUND!" ECHO LISTING_PRINTERS_INSTALLED Get-Printer EXIT } }
Set Default:
(New-Object -ComObject WScript.Network).SetDefaultPrinter('HP LaserJet 5Si')