Skip to main content

Hardware - PnPDevice List DV,Params

Summary

This script collects the device name and version information as provided for the parameter “Device” while executing the script.

Time Saved by Automation: 15 Minutes

Sample Run

Sample Run

Dependencies

@Hardware - PnPDevice List Script

Variables

Variable NameDescription
NameLoopThis variable will hold the result of the SQL query SELECT CONCAT('@','DriverVersion',@loopcounter,'@')
DriverLoopThis variable will hold the result of the SQL query SELECT CONCAT('@','DriverVersion',@loopcounter,'@')

Global Parameters

NameExampleRequiredDescription
DeviceHP PrinterTrueProvide the device name for which you need version information on all of your Windows agents to show in the Dataview.

Script States

Script State NameDescription
DeviceList@loopcounter@This script state will hold the @NameLoop@ and @DriverLoop@ values.

Process

This script collects information about the device name and version as provided for the parameter “Device” while executing the script. The script runs PowerShell to get the device name and device version, splits the variables, and then runs the SQL commands to get the results, holding them in the script state.

Output

  • Dataview