Includes&Samples |
Antecedent - property in ROOT\StandardCimv2 namespaceAntecedent in other namespacesList of classes with Antecedent local property in ROOT\StandardCimv2 namespace
List of classes with Antecedent derived property in ROOT\StandardCimv2 namespaceCode samples for Antecedent propertyGet instance of WMI class using GetObject, Antecedent property of MSFT_NetIPInterfaceNeighborShort VBS code - get a single specified instance of MSFT_NetIPInterfaceNeighbor class or get
a default unnamed instance (singleton) of the class, using one single command GetObject
with exact path of the wmi object.
'https://wutils.com/wmi/ Dim wmiObject Set wmiObject = GetObject( _ "WINMGMTS:\\.\ROOT\StandardCimv2:" + _ "MSFT_NetIPInterfaceNeighbor.Antecedent=""\\\\.\\ROOT\\StandardCimv2:MSFT_NetIPInterface.Name=\"";<55<=55;\"",SystemCreationClassName=\""\"",SystemName=\""\"",CreationClassName=\""\"""",Dependent=""\\\\.\\ROOT\\StandardCimv2:MSFT_NetNeighbor.Name=\""pp: WMI query - sample windows WQL with C#, Antecedent property of MSFT_NetIPInterfaceNeighborGet a specified instance of MSFT_NetIPInterfaceNeighbor by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
//https://wutils.com/wmi/ //Project -> Add reference -> System.Management //using System.Management; //create a management scope object ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\StandardCimv2"); //create object query ObjectQuery query = new ObjectQuery("SELECT * FROM MSFT_NetIPInterfaceNeighbor Where Antecedent=\"\\\\\\\\.\\\\ROOT\\\\StandardCimv2:MSFT_NetIPInterface.Name=\\\";<55<=55;\\\",SystemCreationClassName=\\\"\\\",SystemName=\\\"\\\",CreationClassName=\\\"\\\"\"Dependent=\"\\\\\\\\.\\\\ROOT\\\\StandardCimv2:MSFT_NetNeighbor.Name=\\\"pp: WMI query - sample windows WQL with VB.Net, Antecedent property of MSFT_NetIPInterfaceNeighborGet a specified instance of MSFT_NetIPInterfaceNeighbor by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
'Project -> Add reference -> System.Management 'Imports System.Management 'Get the namespace management scope Dim Scope As New ManagementScope("\\.\ROOT\StandardCimv2") 'Get a result of WML query Dim Query As New ObjectQuery("SELECT * FROM MSFT_NetIPInterfaceNeighbor Where Antecedent="\\\\.\\ROOT\\StandardCimv2:MSFT_NetIPInterface.Name=\";<55<=55;\",SystemCreationClassName=\"\",SystemName=\"\",CreationClassName=\"\""Dependent="\\\\.\\ROOT\\StandardCimv2:MSFT_NetNeighbor.Name=\"pp: |