IGPMGPO::SetSecurityInfo method (gpmgmt.h)

Sets the list of permissions for the group policy object (GPO), such as who is granted permission to edit it. The method replaces the existing list of permissions.

Syntax

HRESULT SetSecurityInfo(
  [in] IGPMSecurityInfo *pSecurityInfo
);

Parameters

[in] pSecurityInfo

Pointer to the security information to apply to the GPO.

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.

Remarks

For more information about policy-related permissions, see IGPM::CreatePermission.

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

IGPMSecurityInfo