DeleteAllGPOLinks function

The DeleteAllGPOLinks function deletes all GPO links for the specified site, domain, or organizational unit.

Syntax


HRESULT DeleteAllGPOLinks(
  _In_  LPOLESTR lpContainer
);

Parameters

lpContainer [in]

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

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 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Gpedit.h

Library

Gpedit.lib

DLL

Gpedit.dll

See also

Group Policy Overview
Group Policy Functions
CreateGPOLink
DeleteGPOLink

 

 

Show:
© 2014 Microsoft. All rights reserved.