Skip to main content

importComputer

You can use the importComputer web method to import a specified computer to the defined site and create a discovery record at the central.

Parameters

The importComputer web method includes the following parameters:

#ParametersData TypeDescription
MachineNameStringComputer name of the new machine
SiteCodeStringThe SCCM Site code where the record will be created.
SubnetStringThe subnet address for the new computer.
ADSiteStringThe Active Directory Site code.
MACAddressStringThe MAC Address of the computer.
SMBiosStringThe SMBIOS ID of the computer.
ComputerToAssociateStringThe old computer name to associate with the newly created one.

Return Value

Returns one of the following values:

  • Returns a 1 for success
  • Returns a 0 for error