SCCMWebService..::..InitiateSoftwareInventory Method
Initiates a software inventory.
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public bool InitiateSoftwareInventory( string computerName, bool fullInventory )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function InitiateSoftwareInventory ( _ computerName As String, _ fullInventory As Boolean _ ) As Boolean
[SoapHeaderAttribute] [WebMethodAttribute] public: bool^ InitiateSoftwareInventory( String^ computerName, bool^ fullInventory )
Parameters
- computerName
- Type: String
Name of the computer.
- fullInventory
- Type: Boolean
if set to true initiate full inventory.
Return Value
true if succeeded, otherwise false.Exceptions
Exception | Condition |
---|---|
Exception | Computer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or Unable to initiate a software inventory cycle on computer + computerName + because host is unreachable! |