[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Connects to WMI on a remote machine with specified credentials and gets the WMI instances from a class

Namespace:  Microsoft.ConfigurationManagement.Messaging.Messages
Assembly:  Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
static 

InventoryInstance[] 
WmiClassToInventoryInstances(
	
string 
hostName,
	
string 
scope,
	
string 
wmiClass,
	
string 
userName,
	
string 
password
)
Public 
Shared 
Function 
WmiClassToInventoryInstances ( _
	
hostName 
As 
String, _
	
scope 
As 
String, _
	
wmiClass 
As 
String, _
	
userName 
As 
String, _
	
password 
As 
String _
) 
As 

InventoryInstance()
public:
static 
array<

InventoryInstance^>^ 
WmiClassToInventoryInstances(
	
String^ 
hostName, 
	
String^ 
scope, 
	
String^ 
wmiClass, 
	
String^ 
userName, 
	
String^ 
password
)

Parameters

hostName
String
scope
String
wmiClass
String
userName
String
password
String

See Also