SCCM WebService API Reference

SCCMWebService..::..RequestAndEvaluateMachinePolicy Method

Requests and evaluates the machine policy.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool RequestAndEvaluateMachinePolicy(
	string computerName,
	int timeoutMilliSec
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function RequestAndEvaluateMachinePolicy ( _
	computerName As String, _
	timeoutMilliSec As Integer _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ RequestAndEvaluateMachinePolicy(
	String^ computerName, 
	int^ timeoutMilliSec
)

Parameters

computerName
Type: String
Name of the computer.
timeoutMilliSec
Type: Int32
The timeout in milliseconds.

Return Value

true if succeeded, otherwise false.

Exceptions


ExceptionCondition
ExceptionUnable to get DNS host name for computer + computername + !