IADsComputerOperations::Shutdown method (iads.h)

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

Syntax

HRESULT Shutdown(
  [in] VARIANT_BOOL bReboot
);

Parameters

[in] bReboot

If TRUE, then reboot the computer after the shutdown is complete.

Return value

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

For other return values, see ADSI Error Codes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See also

IADsComputer

IADsComputerOperations