I need to set up a license asset that is based on a network installed printer and not sure what to do.
The printer has it's own unique PortName and unique ShareName. Any help would be appreciated.
Cathy
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Jbr32
11 years ago
Cathy - here is one possible solution. Use this VBS as a custom software inventory item.
strComputer = "." Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery("Select * from Win32_PrinterConfiguration") For Each objPrinter in colInstalledPrinters if objPrinter.Name = "Fax" Then Wscript.Echo "Name: " & objPrinter.Name Wscript.Echo "Driver Version: " & objPrinter.DriverVersion end If Next
This will run everytime inventory runs on the computer; change the If statement above accordingly.
Then, you can jump to the Asset module and create a new Software Asset for the Custom Software Inventory rule you defined above.
Next you need to link a License Asset to the Software Asset by creating a new License Asset.
That should work.
Also, once you have the Custom Softare Inventory item created, you can also just report on it.
good luck!
Finall