SCCMWebService..::..ResetPolicy Method
Resets the policy for the specified computer.
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public bool ResetPolicy( string computerName, bool hardReset )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function ResetPolicy ( _ computerName As String, _ hardReset As Boolean _ ) As Boolean
[SoapHeaderAttribute] [WebMethodAttribute] public: bool^ ResetPolicy( String^ computerName, bool^ hardReset )
Parameters
- computerName
- Type: String
Name of the computer.
- hardReset
- Type: Boolean
if set to true do a hard reset.
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 hard reset policy on computer + computerName + because host is unreachable! |