IGPMGPO::SetUserEnabled method

Enables or disables the user settings in the GPO.

Syntax


HRESULT SetUserEnabled(
  [in] VARIANT_BOOL bEnabled
);

Parameters

bEnabled [in]

Specifies whether to enable the user 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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpmgmt.h

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMGPO is defined as 58CC4352-1CA3-48E5-9864-1DA4D6E0D60F

See also

IGPMGPO

 

 

Show: