

Without any distinguishing labels, it is not easy to interpret. WSH scripts: (New-Object -ComObject WScript.Network).EnumPrinterConnections()īecause this command returns a simple string collection of port names and printer device names

You can also list the printers by using the WScript.Network COM object that is typically used in The simplest way to list the printers installed on a computer is to use the WMI Win32_PrinterĬlass: Get-CimInstance -Class Win32_Printer We will use a mix of both tools to demonstrate specific tasks. You can use PowerShell to manage printers by using WMI and the WScript.Network COM object from
