SCCM WebService API Reference

SCCMWebService..::..ImportComputer Method

Creates a new computer with a new SMBIOSGUID.

Namespace:  SCCMWebService
Assembly:  SCCMWebService (in SCCMWebService.dll)

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool ImportComputer(
	string computerName,
	string macAddress,
	out KeyValuePair<string, int> outResourceID
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function ImportComputer ( _
	computerName As String, _
	macAddress As String, _
	<OutAttribute> ByRef outResourceID As KeyValuePair(Of String, Integer) _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ ImportComputer(
	String^ computerName, 
	String^ macAddress, 
	[OutAttribute] KeyValuePair<String^, int^>^% outResourceID
)

Parameters

computerName
Type: String
Name of the computer.
macAddress
Type: String
The mac address.
outResourceID
Type: SCCMWebService.DataObjects..::..KeyValuePair<(Of <(<'String, Int32>)>)>%
KeyValuePair

Return Value

True if succeeded, otherwise false. Returns also new resourceIDs or 0 if computer already exists or -1 if import failed.

Exceptions


ExceptionCondition
ExceptionNot a valid MAC Address. or Unable to create a new Computer.