Managed Terminal Services::ControlServer

The method reboots or shuts down the specified server.

Arguments

Input Arguments Required Description

<server>

Yes

The name of the terminal server which is to be controlled.

<action>

Yes

The action to be performed: "reboot" or "shutdown".

<preferredDomainController>

Yes

The name of the preferred domain controller to be used to check the permissions of the caller.

Remarks

Security

Permitted to DomainAdmins only

Sample Code

Example XML Request

<request> 
  <procedure> 
    <execute namespace="Managed Terminal Services"  
             procedure="ControlServer"> 
      <executeData> 
        <server>TheServer</server> 
        <action>reboot</action> 
        <preferredDomainController>dc1</preferredDomainController> 
      </executeData> 
    </execute> 
  </procedure> 
</request> 

Applies To

Terminal Services Namespace

See also

Tasks

Managed Terminal Services::GetServers
Managed Terminal Services::ControlConnection
Managed Terminal Services::ControlRemoteDesktop