Platform SDK: Active Directory, ADSI, and Directory Services

IADsComputerOperations::Shutdown

The IADsComputerOperations::Shutdown method causes a computer under ADSI control to execute the shutdown operation with an optional reboot.

HRESULT IADsComputerOperations::Shutdown(
boolean bReboot  
);

Parameters

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

Return Values

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

S_OK
The shutdown command has been issued successfully.
E_FAIL
The request is denied.

For other return values, see ADSI Error Codes.

Requirements

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
  Windows 95/98: Requires Windows 95 or later (with DSClient).
  Header: Declared in Iads.h.

See Also

IADsComputer, IADsComputerOperations