SCCM WebService API Reference

SCCMWebService..::..WakeUpComputer Method

Wakes up the specified computer.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool WakeUpComputer(
	string computername,
	int numOfRetries
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function WakeUpComputer ( _
	computername As String, _
	numOfRetries As Integer _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ WakeUpComputer(
	String^ computername, 
	int^ numOfRetries
)

Parameters

computername
Type: String
The computer name.
numOfRetries
Type: Int32
The number of retries.

Return Value

true if succeeded, otherwise false.

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty! or resourceID for computer + computername + not found! or The query + query + returned no results!