SCCM WebService API Reference

SCCMWebService..::..InitiateHardwareInventory Method

Initiates a hardware inventory.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool InitiateHardwareInventory(
	string computerName,
	bool fullInventory
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function InitiateHardwareInventory ( _
	computerName As String, _
	fullInventory As Boolean _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ InitiateHardwareInventory(
	String^ computerName, 
	bool^ fullInventory
)

Parameters

computerName
Type: String
Name of the computer.
fullInventory
Type: Boolean
if set to true [full inventory].

Return Value

true if succeeded, otherwise false.

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or Unable to initiate a hardware inventory cycle on computer + computerName + because host is unreachable!