Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » WMI Performance Counters » Powershell

IPProtocolEndpoint - 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 IPProtocolEndpoint WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


IPProtocolEndpoint

Example(s)

$strComputer = "."

$objWMi = get-wmiobject -namespace root\StandardCimv2 -computername localhost -Query "Select * from CIM_IPProtocolEndpoint"

foreach ($obj in $objWmi)
{
	write-host "Address:" $obj.Address
	write-host "AddressFamily:" $obj.AddressFamily
	write-host "AddressOrigin:" $obj.AddressOrigin
	write-host "AddressState:" $obj.AddressState
	write-host "AddressType:" $obj.AddressType
	write-host "AvailableRequestedStates:" $obj.AvailableRequestedStates
	write-host "Caption:" $obj.Caption
	write-host "CommunicationStatus:" $obj.CommunicationStatus
	write-host "CreationClassName:" $obj.CreationClassName
	write-host "Description:" $obj.Description
	write-host "DetailedStatus:" $obj.DetailedStatus
	write-host "ElementName:" $obj.ElementName
	write-host "EnabledDefault:" $obj.EnabledDefault
	write-host "EnabledState:" $obj.EnabledState
	write-host "HealthState:" $obj.HealthState
	write-host "InstallDate:" $obj.InstallDate
	write-host "InstanceID:" $obj.InstanceID
	write-host "InterfaceAlias:" $obj.InterfaceAlias
	write-host "InterfaceIndex:" $obj.InterfaceIndex
	write-host "IPAddress:" $obj.IPAddress
	write-host "IPv4Address:" $obj.IPv4Address
	write-host "IPv6Address:" $obj.IPv6Address
	write-host "IPVersionSupport:" $obj.IPVersionSupport
	write-host "Name:" $obj.Name
	write-host "NameFormat:" $obj.NameFormat
	write-host "OperatingStatus:" $obj.OperatingStatus
	write-host "OperationalStatus:" $obj.OperationalStatus
	write-host "OtherEnabledState:" $obj.OtherEnabledState
	write-host "OtherTypeDescription:" $obj.OtherTypeDescription
	write-host "PreferredLifetime:" $obj.PreferredLifetime
	write-host "PrefixLength:" $obj.PrefixLength
	write-host "PrefixOrigin:" $obj.PrefixOrigin
	write-host "PrimaryStatus:" $obj.PrimaryStatus
	write-host "ProtocolIFType:" $obj.ProtocolIFType
	write-host "ProtocolType:" $obj.ProtocolType
	write-host "RequestedState:" $obj.RequestedState
	write-host "SkipAsSource:" $obj.SkipAsSource
	write-host "Status:" $obj.Status
	write-host "StatusDescriptions:" $obj.StatusDescriptions
	write-host "Store:" $obj.Store
	write-host "SubnetMask:" $obj.SubnetMask
	write-host "SuffixOrigin:" $obj.SuffixOrigin
	write-host "SystemCreationClassName:" $obj.SystemCreationClassName
	write-host "SystemName:" $obj.SystemName
	write-host "TimeOfLastStateChange:" $obj.TimeOfLastStateChange
	write-host "TransitioningToState:" $obj.TransitioningToState
	write-host "Type:" $obj.Type
	write-host "ValidLifetime:" $obj.ValidLifetime
	write-host
	write-host "########"
	write-host
}