SCCM WebService API Reference

SCCMWebService..::..ImportComputerWithSMBIOSGUID Method

Creates a new computer with a given bios guid.

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

Syntax


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

Parameters

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

Return Value

True if succeeded, otherwise false. Returns 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.