DeleteGPOLink function

The DeleteGPOLink function deletes the link between the specified GPO and the specified site, domain, or organizational unit.

Syntax


HRESULT DeleteGPOLink(
  _In_  LPOLESTR lpGPO,
  _In_  LPOLESTR lpContainer
);

Parameters

lpGPO [in]

A value that specifies the path to the GPO, in ADSI format (LDAP://cn=user, ou=users, dc=coname, dc=com). You cannot specify a server name in this parameter.

lpContainer [in]

Specifies the Active Directory path to the site, domain, or organizational unit.

Return value

If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the header file WinError.h.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Gpedit.h

Library

Gpedit.lib

DLL

Gpedit.dll

See also

Group Policy Overview
Group Policy Functions
CreateGPOLink
DeleteAllGPOLinks

 

 

Show:
© 2014 Microsoft