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
Answer Summary:
0 Comments
[ - ] Hide Comments
Answer Chosen by the Author
Answers
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] |
Please log in to comment
-
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.
-
Answer this question
or Comment on this question for clarity
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
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
Please log in to comment
Please log in to comment
Comments