/build/static/layout/Breadcrumb_cap_w.png

Trouble getting NIC driver versions using Power Shell and wmi

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

0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: jamie_kace 8 years ago
Brown Belt
2

Top Answer

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 15.14.0.2 
Intel(R) 82579LM Gigabit Network Co... 12.6.45.0 
Microsoft Kernel Debug Network Adapter 10.0.10074.0 
VMware Virtual Ethernet Adapter for... 4.2.1.0 
VMware Virtual Ethernet Adapter for... 4.2.1.0 


[string]

Comments:
  • 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. - SMal.tmcc 8 years ago
  • Thanks for the help! - chokladio 8 years ago
Posted by: SMal.tmcc 8 years ago
Red Belt
0
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


Comments:
  • 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 - chokladio 8 years ago
    • never hesitate to ask there are a lot of experts on this forum willing to help. - SMal.tmcc 8 years ago

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:

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