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:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answer Chosen by the Author

2
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]
Answered 05/05/2015 by: jamie_kace
Green 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!
Please log in to comment

Answers

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

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.
Please log in to comment
Answer this question or Comment on this question for clarity