smslong.blogg.se

Wmi printer serial number
Wmi printer serial number









wmi printer serial number wmi printer serial number wmi printer serial number

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











Wmi printer serial number