I would like to find what Network Driver versions exist in my environment. Is there a way to find that information using Custom Inventory?
Use this Powershell Script to populate a Custom Data Class that you create:
#************************DO NOT EDIT********************************
$nse = new-object -comobject Altiris.AeXNSEvent
$nse.priority = 1
$nse.To = "{1592B913-72F3-4C36-91D2-D4EDA21D2F96}"
#************************DO NOT EDIT********************************
#Modify this varaible with the custom data class guid
$objDCInstance = $nse.AddDataClass("{3ac40092-71cd-4a69-ae4c-d9c4c1bc3fdb}")
$objDataClass = $nse.AddDataBlock($objDCInstance)
$builtinapps = Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion, Manufacturer | where {$_.DeviceName -like "*wifi*"}
#loop through each data file we found and populate rows and columns.
foreach ($app in $builtinapps)
{
#Add new row of data
$objDataRow = $objDataClass.AddRow()
#popluate columns
$objDataRow.SetField(1, $app.DeviceName)
$objDataRow.SetField(2, $app.DriverVersion)
$objDataRow.SetField(3, $app.Manufacturer)
}
$builtinapps2 = Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion, Manufacturer | where {$_.DeviceName -like "*Network*"}
#loop through each data file we found and populate rows and columns.
foreach ($app in $builtinapps2)
{
#Add new row of data
$objDataRow = $objDataClass.AddRow()
#popluate columns
$objDataRow.SetField(1, $app.DeviceName)
$objDataRow.SetField(2, $app.DriverVersion)
$objDataRow.SetField(3, $app.Manufacturer)
}
#Send the data
$nse.sendqueued()
#$nse