LANEndpoint - 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 LANEndpoint WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
LANEndpoint
Example(s)
$strComputer = "." $objWMi = get-wmiobject -namespace root\StandardCimv2 -computername localhost -Query "Select * from CIM_LANEndpoint" foreach ($obj in $objWmi) { write-host "AddressFamily:" $obj.AddressFamily write-host "AdvertiseDefaultRoute:" $obj.AdvertiseDefaultRoute write-host "AdvertisedRouterLifetime:" $obj.AdvertisedRouterLifetime write-host "Advertising:" $obj.Advertising write-host "AliasAddresses:" $obj.AliasAddresses write-host "AutomaticMetric:" $obj.AutomaticMetric write-host "AvailableRequestedStates:" $obj.AvailableRequestedStates write-host "BaseReachableTime:" $obj.BaseReachableTime write-host "Caption:" $obj.Caption write-host "CommunicationStatus:" $obj.CommunicationStatus write-host "ConnectionState:" $obj.ConnectionState write-host "CreationClassName:" $obj.CreationClassName write-host "CurrentHopLimit:" $obj.CurrentHopLimit write-host "DadTransmits:" $obj.DadTransmits write-host "Description:" $obj.Description write-host "DetailedStatus:" $obj.DetailedStatus write-host "Dhcp:" $obj.Dhcp write-host "DirectedMacWolPattern:" $obj.DirectedMacWolPattern write-host "EcnMarking:" $obj.EcnMarking write-host "ElementName:" $obj.ElementName write-host "EnabledDefault:" $obj.EnabledDefault write-host "EnabledState:" $obj.EnabledState write-host "ForceArpNdWolPattern:" $obj.ForceArpNdWolPattern write-host "Forwarding:" $obj.Forwarding write-host "GroupAddresses:" $obj.GroupAddresses write-host "HealthState:" $obj.HealthState write-host "IgnoreDefaultRoutes:" $obj.IgnoreDefaultRoutes write-host "InstallDate:" $obj.InstallDate write-host "InstanceID:" $obj.InstanceID write-host "InterfaceAlias:" $obj.InterfaceAlias write-host "InterfaceIndex:" $obj.InterfaceIndex write-host "InterfaceMetric:" $obj.InterfaceMetric write-host "LANID:" $obj.LANID write-host "LANType:" $obj.LANType write-host "MACAddress:" $obj.MACAddress write-host "ManagedAddressConfiguration:" $obj.ManagedAddressConfiguration write-host "MaxDataSize:" $obj.MaxDataSize write-host "Name:" $obj.Name write-host "NameFormat:" $obj.NameFormat write-host "NeighborDiscoverySupported:" $obj.NeighborDiscoverySupported write-host "NeighborUnreachabilityDetection:" $obj.NeighborUnreachabilityDetection write-host "NlMtu:" $obj.NlMtu write-host "OperatingStatus:" $obj.OperatingStatus write-host "OperationalStatus:" $obj.OperationalStatus write-host "OtherEnabledState:" $obj.OtherEnabledState write-host "OtherLANType:" $obj.OtherLANType write-host "OtherStatefulConfiguration:" $obj.OtherStatefulConfiguration write-host "OtherTypeDescription:" $obj.OtherTypeDescription write-host "PrimaryStatus:" $obj.PrimaryStatus write-host "ProtocolIFType:" $obj.ProtocolIFType write-host "ProtocolType:" $obj.ProtocolType write-host "ReachableTime:" $obj.ReachableTime write-host "RequestedState:" $obj.RequestedState write-host "RetransmitTime:" $obj.RetransmitTime write-host "RouterDiscovery:" $obj.RouterDiscovery write-host "Status:" $obj.Status write-host "StatusDescriptions:" $obj.StatusDescriptions write-host "Store:" $obj.Store write-host "SystemCreationClassName:" $obj.SystemCreationClassName write-host "SystemName:" $obj.SystemName write-host "TimeOfLastStateChange:" $obj.TimeOfLastStateChange write-host "TransitioningToState:" $obj.TransitioningToState write-host "WeakHostReceive:" $obj.WeakHostReceive write-host "WeakHostSend:" $obj.WeakHostSend write-host write-host "########" write-host }