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:
| # | Parameters | Data Type | Description |
|---|---|---|---|
| MachineName | String | Computer name of the new machine | |
| SiteCode | String | The SCCM Site code where the record will be created. | |
| Subnet | String | The subnet address for the new computer. | |
| ADSite | String | The Active Directory Site code. | |
| MACAddress | String | The MAC Address of the computer. | |
| SMBios | String | The SMBIOS ID of the computer. | |
| ComputerToAssociate | String | The 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