Usage of Device Discovery and inventory and WMI
Posted: 10. Nov 2014, 13:16
Hello,
We are new to empirum and want to use the Device Discovery to fill in the existing devices into empirum.
We also want to use the wmi possibility's to have at least some basic onformation about the discovered items, like the computer type, Manufacturer, model and serial number.
The thing is that i don't know how the query must be formatted. The documentation is very poor and all other information, as far as i can find, is in German which is difficult to follow using Google translate.
I have the following wmi queries which run perfectly from powershell. How must i enter this in the discovery so that the outcome is entered in Empirum ?
The variable $Data.Name contains the name of the computer.
# Query Mac Address and IP Address of computer, filter on IP Enabed = true and Default gateway is set (in case of multiple nics)
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Computer $Data.Name -ErrorAction Stop | where { ($_.IpEnabled -Match "True") -and ($_.DefaultIPGateway -ne $null) } | Select IPAddress,MACAddress
# Get Computer Manufacturer and Model
Get-WmiObject -Class win32_computersystem -Computer $Data.Name | select Manufacturer,Model
# Get Serial number
Get-WmiObject -Class win32_bios -Computer $Data.Name | Select SerialNumber
I allready tried to use the following to enter in the discovery tabs in empirum:
- Select Manufacturer,Model from win32_computersystem
- Select SerialNumber from win32_bios
But the corresponding fields aren't filled in. What else must i do ?
We are new to empirum and want to use the Device Discovery to fill in the existing devices into empirum.
We also want to use the wmi possibility's to have at least some basic onformation about the discovered items, like the computer type, Manufacturer, model and serial number.
The thing is that i don't know how the query must be formatted. The documentation is very poor and all other information, as far as i can find, is in German which is difficult to follow using Google translate.
I have the following wmi queries which run perfectly from powershell. How must i enter this in the discovery so that the outcome is entered in Empirum ?
The variable $Data.Name contains the name of the computer.
# Query Mac Address and IP Address of computer, filter on IP Enabed = true and Default gateway is set (in case of multiple nics)
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Computer $Data.Name -ErrorAction Stop | where { ($_.IpEnabled -Match "True") -and ($_.DefaultIPGateway -ne $null) } | Select IPAddress,MACAddress
# Get Computer Manufacturer and Model
Get-WmiObject -Class win32_computersystem -Computer $Data.Name | select Manufacturer,Model
# Get Serial number
Get-WmiObject -Class win32_bios -Computer $Data.Name | Select SerialNumber
I allready tried to use the following to enter in the discovery tabs in empirum:
- Select Manufacturer,Model from win32_computersystem
- Select SerialNumber from win32_bios
But the corresponding fields aren't filled in. What else must i do ?