/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: Jbr32 10 years ago
10th Degree Black Belt
1

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ