TerminalServicesProvider::ControlServer
The ControlServer 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". |
Remarks
Rollback
Not implemented, because it is not possible to roll back this action.
Underlying API
WTSShutdownSystem
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="Terminal Services Provider" procedure="ControlServer">
<executeData>
<server>TheServer</server>
<action>reboot</action>
</executeData>
</execute>
</procedure>
</request>