Jaa


Group Policy Functions

The following table lists functions that can be used with Group Policy.

Function Description
BrowseForGPO Creates a GPO browser dialog box that allows the user to open or create a GPO.
CreateGPOLink Creates a link between the specified GPO and the specified site, domain, or organizational unit.
DeleteAllGPOLinks Deletes all GPO links for the specified site, domain, or organizational unit.
DeleteGPOLink Deletes the link between the specified GPO and the specified site, domain, or organizational unit.
EnterCriticalPolicySection Pauses the application of policy to allow applications to safely read policy settings. Applications call this function if they read multiple policy entries and must ensure that the settings are not changed while they are being read.
ExportRSoPData Exports a WMI namespace that contains RSoP information to a data file.
FreeGPOList Frees the specified list of GPOs.
GenerateGroupPolicy An application-defined callback function that each policy extension must export when generating RSoP data in the planning mode. The Group Policy Data Access Service (GPDAS) calls the function after the service simulates the loading of client-side extensions so that extensions can generate policy data.
GetAppliedGPOList Retrieves the list of GPOs applied for the specified user or computer.
GetGPOList Retrieves the list of GPOs for the specified user or computer.
GetLocalManagedApplications Runs on the target computer to get a list of managed applications on that computer.
GetManagedApplications Retrieves a list of applications that are displayed in the "Add" pane of Add or Remove Programs (ARP) for a specified user context.
GetManagedApplicationCategories Retrieves a list of application categories for a domain.
ImportRSoPData Imports a data file generated by the ExportRSoPData function.
InstallApplication Installs group policy applications that have been deployed to target users that belong to a domain computer running on Windows.
LeaveCriticalPolicySection Resumes the background application of policy.
ProcessGroupPolicyCompleted Notifies the computer that the specified extension has finished applying policy. It's recommended to call the ProcessGroupPolicyCompletedEx function instead.
ProcessGroupPolicyCompletedEx Notifies the computer that the specified extension has finished applying policy. The function also reports the status of RSoP logging.
ProcessGroupPolicy An application-defined callback function used to apply policy. It's recommended to call the ProcessGroupPolicyEx function instead.
ProcessGroupPolicyEx An application-defined callback function used to apply policy.
RefreshPolicy Causes policy to be applied immediately on the computer.
RefreshPolicyEx Causes policy to be applied immediately on the computer. The function allows you to specify the type of policy refresh to apply.
RegisterGPNotification Enables an application to receive notification when there is a change in policy.
RSoPAccessCheckByType Determines whether a security descriptor grants a specified set of access rights to the client identified by an RSOPTOKEN.
RSoPFileAccessCheck Determines whether a file security descriptor grants a specified set of file access rights to the client identified by an RSOPTOKEN.
RSoPResetPolicySettingStatus Unlinks the RSOP_PolicySettingStatus instance from its RSOP_PolicySetting instance. The function deletes the instances of RSOP_PolicySettingStatus and RSOP_PolicySettingLink.
RSoPSetPolicySettingStatus Creates an instance of RSOP_PolicySettingStatus and an instance of RSOP_PolicySettingLink. The function links (associates) the RSOP_PolicySettingStatus instance to its RSOP_PolicySetting instance.
StatusMessageCallback An application-defined callback function that is used to display status messages when applying policy.
UninstallApplication Uninstalls a group policy application that handles setup and installation using Windows Installer .msi files.
UnregisterGPNotification Unregisters the specified policy-notification handle from receiving policy change notifications.