NetworkAdapter - WMI sample in Powershell
The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.
On this site, you can find many WMI samples.
The NetworkAdapter WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
NetworkAdapter
Example(s)
$strComputer = "." $objWMi = get-wmiobject -computername localhost -Query "Select * from CIM_NetworkAdapter" foreach ($obj in $objWmi) { write-host "AdapterType:" $obj.AdapterType write-host "AdapterTypeId:" $obj.AdapterTypeId write-host "AutoSense:" $obj.AutoSense write-host "Availability:" $obj.Availability write-host "Caption:" $obj.Caption write-host "ConfigManagerErrorCode:" $obj.ConfigManagerErrorCode write-host "ConfigManagerUserConfig:" $obj.ConfigManagerUserConfig write-host "CreationClassName:" $obj.CreationClassName write-host "Description:" $obj.Description write-host "DeviceID:" $obj.DeviceID write-host "ErrorCleared:" $obj.ErrorCleared write-host "ErrorDescription:" $obj.ErrorDescription write-host "GUID:" $obj.GUID write-host "Index:" $obj.Index write-host "InstallDate:" $obj.InstallDate write-host "Installed:" $obj.Installed write-host "InterfaceIndex:" $obj.InterfaceIndex write-host "LastErrorCode:" $obj.LastErrorCode write-host "MACAddress:" $obj.MACAddress write-host "Manufacturer:" $obj.Manufacturer write-host "MaxNumberControlled:" $obj.MaxNumberControlled write-host "MaxSpeed:" $obj.MaxSpeed write-host "Name:" $obj.Name write-host "NetConnectionID:" $obj.NetConnectionID write-host "NetConnectionStatus:" $obj.NetConnectionStatus write-host "NetEnabled:" $obj.NetEnabled write-host "NetworkAddresses:" $obj.NetworkAddresses write-host "PermanentAddress:" $obj.PermanentAddress write-host "PhysicalAdapter:" $obj.PhysicalAdapter write-host "PNPDeviceID:" $obj.PNPDeviceID write-host "PowerManagementCapabilities:" $obj.PowerManagementCapabilities write-host "PowerManagementSupported:" $obj.PowerManagementSupported write-host "ProductName:" $obj.ProductName write-host "ServiceName:" $obj.ServiceName write-host "Speed:" $obj.Speed write-host "Status:" $obj.Status write-host "StatusInfo:" $obj.StatusInfo write-host "SystemCreationClassName:" $obj.SystemCreationClassName write-host "SystemName:" $obj.SystemName write-host "TimeOfLastReset:" $obj.TimeOfLastReset write-host write-host "########" write-host }