Wmi Printer Serial Number

 

I cannot find an option to include the serial number as it is not supported by the vbscript Win32_Printer class, however you may be able to retrieve unique information from this script. Option Explicit Dim objWMIService Dim objItem Dim colItems Dim strComputer DIm intPrinters strComputer ='.' ' Pure WMI Section Set objWMIService = GetObject _ ('winmgmts: ' & strComputer & ' root CIMV2') Set colItems = objWMIService.ExecQuery _ ('SELECT * FROM Win32_Printer') ' On Error Resume Next For Each objItem In colItems If(objItem.name = 'HP') Then WScript. College Physics Paul Peter Urone Pdf Printer. Echo (objItem.name) WScript.Echo (objItem.Description) WScript.Echo (objItem.DeviceID) WScript.Echo (objItem.DriverName) End If Next 'Release Memory Set objItem = Nothing Set objWMIService = Nothing Set colItems = Nothing WScript.Quit.

Powershell Wmi Get Serial Number

I would like to edit the following script file to include the printer serial number. Is it possible? The following does not seem to work. Note: I am in the learning phase of scripting. ' PrinterWMI.vbs ' Sample WMI Printer VBScript to interrogate properties ' ' -----------------------------------------------' Option Explicit Dim objWMIService, objItem, colItems, strComputer, intPrinters strComputer ='.'

Aug 26, 2018  I am an employee of a company whom sells and services printers and copiers. We utilize FMAudit to collect information about network connected printers but the locally attached(USB) printers' serial number isn't. Free Download Tema Hp Nexian G801 more. I cannot find an option to include the serial number as it is not supported by the vbscript Win32_Printer class, however you may be able to retrieve unique information from this script. Win32_Printer Class.