IADsComputerOperations::Shutdown

Causes a computer under Active Directory control to execute the shutdown operation with an optional reboot.

HRESULT IADsComputerOperations::Shutdown(
  boolean bReboot  //TRUE means reboot after shutting down
);
 

Parameter

bReboot
[in] If TRUE then reboot the computer after the shutdown is complete.

Return Values

This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:

S_OK
The shutdown command has been issued successfully.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows CE: Unsupported.
  Header: Declared in iads.h.

See Also

IADsComputer, ADSI Computer Object