IGPMGPO::SetComputerEnabled method (gpmgmt.h)

Enables or disables the computer settings in the GPO.

Syntax

HRESULT SetComputerEnabled(
  [in] VARIANT_BOOL vbEnabled
);

Parameters

[in] vbEnabled

Specifies whether to enable the computer settings in the GPO.

C++:  If VARIANT_TRUE, the method enables the settings; otherwise the method disables them.

Scripting:  If true, the method enables the settings; otherwise the method disables them.

Return value

JScript

Returns S_OK if successful. Returns a failure code if an error occurs.

VB

Returns S_OK if successful. Returns a failure code if an error occurs.

Requirements

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

See also

IGPMGPO