WmiClassToInventoryReportInstance.WmiClassToInventoryInstances Method (String, String, String, String)
Connects to WMI on the local machine and gets the WMI instances from a class.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static InventoryInstance[] WmiClassToInventoryInstances(
string scope,
string wmiClass,
string spoofNamespace,
string spoofWmiClass
)
public:
static array<InventoryInstance^>^ WmiClassToInventoryInstances(
String^ scope,
String^ wmiClass,
String^ spoofNamespace,
String^ spoofWmiClass
)
Public Shared Function WmiClassToInventoryInstances (
scope As String,
wmiClass As String,
spoofNamespace As String,
spoofWmiClass As String
) As InventoryInstance()
Parameters
scope
Type: System.StringThe namespace to connect to. This value is required.
wmiClass
Type: System.StringThe WMI class. This value is required.
spoofNamespace
Type: System.StringOverrides the WMI namespace in the inventory with this value. If this value is not defined, the value for scope is used.
spoofWmiClass
Type: System.StringOverrides the WMI class in the inventory with this value. If this value is not defined, the value for wmiClass is used.
Return Value
Type: Microsoft.ConfigurationManagement.Messaging.Messages.InventoryInstance[]
See Also
WmiClassToInventoryInstances Overload
WmiClassToInventoryReportInstance Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top