воскресенье, 10 января 2021 г.

Export printers with IP - PowerShell

Sometimes we need to know IP of all printers on a print server, but default Printers view doesn't have it.
Even if you try to add fields in the View - Add/Remove Columns... it is not there.

So we have no choice not to use our old friend PowerShell.

-=-=-=-=START-=-=-=-=-=-=-=-
$printserver = "Printserver-Name" 

Get-WMIObject -class Win32_Printer -computer $printserver  Select Name,DriverName,PortName  Export-CSV -path 'C:\All-Printers.csv'

-=-=-=-=END-=-=-=-=-=-=-=-

Комментариев нет:

Отправить комментарий