Scripting Question

Trouble getting NIC driver versions using Power Shell and wmi

05/03/2015 3562 views
I'm trying to get the NIC (specifically the Wirelesss network-adapters driver) using this PS-line: 
gwmi Win32_PnPSignedDriver -Filter "DeviceClass = 'NET'" | ft DeviceName,DriverVersion

My issue is simply the fact that I don't know how to return the information to "me". I can execute the script without any trouble but I have no idea of how to actually return the information to me, my skill in both PS and Windows environments is too lacking.. Any ideas?

Thanks in advance
Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author

Create a Custom Inventory in KACE with the following Syntax:

ShellCommandTextReturn(cmd /c powershell.exe -command "Get-WmiObject Win32_PnPSignedDriver | Where-Object {$_.DeviceClass  -eq 'NET'} | select DeviceName,DriverVersion")

This returns a custom inventory record that looks like this:

2) Signed NIC Drivers:
DeviceName DriverVersion
---------- -------------
Microsoft ISATAP Adapter 10.0.10074.0 
Microsoft ISATAP Adapter 10.0.10074.0 
Microsoft ISATAP Adapter 10.0.10074.0 
Microsoft Wi-Fi Direct Virtual Adapter 10.0.10074.0 
Intel(R) Centrino(R) Advanced-N 6205 
Intel(R) 82579LM Gigabit Network Co... 
Microsoft Kernel Debug Network Adapter 10.0.10074.0 
VMware Virtual Ethernet Adapter for... 
VMware Virtual Ethernet Adapter for... 

Answered 05/05/2015 by: jamie_kace
Second Degree Brown Belt

  • thanks for taking the time to get the exact wording for them. I am way to busy this time of year to do a lot of research.
  • Thanks for the help!

All Answers

you can create a CIR and execute the command via a shellcommandtextreturn.

here is a example I use to see what type of memory chips are installed

ShellCommandTextReturn(cmd /c c:\windows\system32\wbem\WMIC.exe memorychip get devicelocator,manufacturer,partnumber)

this is what gets added to the machines inventory

2) CIR - get memory chip information: DeviceLocator Manufacturer PartNumber
ChannelA-DIMM1 Hynix/Hyundai HMT351U6CFR8C-H9
ChannelB-DIMM1 Hynix/Hyundai HMT351U6CFR8C-H9

Answered 05/04/2015 by: SMal.tmcc
Red Belt

  • Thank you for pointing me in the right direction, I'll make sure to learn more powershell in the future so that I can change the syntax myself next time
    • never hesitate to ask there are a lot of experts on this forum willing to help.

Don't be a Stranger!

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

Sign up! or login

View more:


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