Skip to main content

Group Policy

Vertex lists every Group Policy Object of the domain, shows where it is linked and its full settings report, and changes GPOs through the GroupPolicy PowerShell module on the domain controller. Group Policy is for Tenant admins only (reading included). Changes need the GPOs write switch and --gpo on in the connector's guard; deleting also needs deletes on both sides.

Listing GPOs​

The GPO list, searchable by name, shows each GPO's name, status, comment, owner, WMI filter, creation and change times, user and computer versions, how many links it has, and marks the two default domain policies as built-in. A GPO's detail adds its links: the OU (or domain), whether the link is enabled and enforced, its order, and whether the OU is in scope.

The report​

Each GPO has its last XML report (Get-GPOReport -ReportType Xml): every setting, including those Vertex does not edit (security settings, scripts, preferences). The report can be read from the domain controller again; large reports arrive in parts.

Creating, renaming, deleting​

ActionDetails
CreateA name (at most 255 characters), an optional comment (2,048) and optionally an OU to link it to at once (a managed OU or below one). The AD account becomes its owner.
ChangeRename it, change its comment, or its status: AllSettingsEnabled, UserSettingsDisabled, ComputerSettingsDisabled, AllSettingsDisabled. The GPO is backed up first.
DeleteNeeds a step-up and the deletes switch. The GPO is backed up first; if the backup fails, nothing is deleted. Deleting a GPO also removes its links.

Only GPOs that stay in your OUs​

Changing a GPO (name, status, comment), its registry settings or its permissions, and deleting it, is allowed only when every link of the GPO is on a managed OU or below one. A GPO linked on the domain, the Domain Controllers OU, a site or any OU outside the managed OUs is refused with out_of_scope (the GPO is linked to … only GPOs linked to managed OUs can be changed), because its settings would reach computers and users Vertex does not manage. A GPO with no links can be changed. Vertex checks the links it knows from the last sync (a GPO not synced yet is refused with not_found: sync first), and the domain controller checks them again before the change.

A GPO's link on one OU (or the domain object) can be changed; the OU must be a managed OU or below one:

ActionEffect
LinkLinks the GPO there, optionally enabled or not, enforced or not, and at a given order.
ChangeChanges an existing link: enabled, enforced, order.
UnlinkRemoves the link.

The link order is 1 to 1,000; 1 has the highest precedence on that OU. An enforced link applies even below OUs that block inheritance. A disabled link stays in place but does not apply.

Which GPOs can be linked​

Linking, changing a link and unlinking also check the GPO, so that a policy of the domain cannot be brought into your OUs (or taken out of them) through Vertex. Refused with out_of_scope:

  • the default domain policies (the default domain policies cannot be linked through Vertex);
  • a GPO linked on the domain, a site, the Domain Controllers OU or any OU outside the managed OUs, as for changes;
  • a GPO with no links that the AD account Vertex works with does not own, that is one not created through Vertex (the GPO is not linked to a managed OU and was not created by the AD account Vertex works with). Link such a GPO with the Group Policy Management Console first, or create the GPO in Vertex.

A GPO already linked only to managed OUs can be linked to further managed OUs. Vertex checks what it knows from the last sync (a GPO not synced yet: not_found), and the domain controller checks again, including site links and the GPO's owner by SID. GPO ids are compared in one spelling (lower case, with dashes), whatever form the request uses.

Link map on the GPO list (and Show on map on a GPO) opens a page of its own: a bar with the controls on top and the map on the rest of the window. It draws the domain and its OUs as a tree of cards, left to right. Each card lists the GPOs linked to that OU in link order: a lock for an enforced link, Off (crossed out) for a link that is off; a shield on the card marks an OU that blocks inheritance. By default it shows the OUs with links and their parents; Show every OU shows them all. A large domain opens at a readable size with the domain at the left: drag to move around, zoom with the buttons or the wheel, or use the overview in the corner. Full screen hides the browser's own bars too; Esc or Exit full screen leaves it. Group Policy at the top left goes back to the GPO list.

  • Choose an OU to list the GPOs that reach it, in precedence order (the first wins), each with the OU its link is on: enforced links first (the domain's before an OU's), then the OU's own links, then its parent's and so on, stopping after an OU that blocks inheritance. Links that are off never apply.
  • Choose a GPO (a row on any card, or Highlight a GPO) to see the OUs it applies to: its rows light up on every card, and the OUs it does not reach are greyed. Choose it again, or close the panel, to clear it.

List gives the same facts without the map: every OU and its links. The map shows links only: links on sites, security filtering and WMI filters are not taken into account, so it is not the Resultant Set of Policy of a computer or user.

Registry-based settings​

Vertex sets and removes registry-based policy settings (Set-GPRegistryValue, Remove-GPRegistryValue): the Administrative Templates settings and any other value under the policy keys. Up to 100 values at once (set and removed together); each counts as one change. The GPO is backed up first.

Each value has:

FieldMeaning
ScopeComputer (HKLM, Computer Configuration) or user (HKCU, User Configuration).
KeyThe key without the hive, for example Software\Policies\Microsoft\Windows\Personalization. Single backslashes, at most 1,024 characters.
Value nameThe value's name (at most 255 characters).
TypeWhen setting: String, ExpandString, DWord, QWord, MultiString or Binary.
ValueWhen setting, in the format of its type (below).
TypeValue format
String, ExpandStringThe text (up to 16 KiB). ExpandString keeps %variables% for the client to expand.
DWord, QWordA decimal number, digits only (1, 4294967295); no hex, no sign.
MultiStringOne string per line (separated by line breaks).
BinaryHexadecimal bytes without separators, for example 01a0ff (up to 4,096 bytes).

For example, the computer setting NoLockScreen under Software\Policies\Microsoft\Windows\Personalization is a DWord with the value 1.

Only keys below Software\Policies\ or Software\Microsoft\Windows\CurrentVersion\Policies\ can be set or removed, and never a key with a Run, RunOnce, RunOnceEx, RunServices, RunServicesOnce, Winlogon, Image File Execution Options, Services, Lsa or AppInit_DLLs part, nor the values AppInit_DLLs, LoadAppInit_DLLs, AlwaysInstallElevated and Shell: these start programs at startup or logon or raise privileges. Nor, in any key, these values, which point computers at another update server or switch off protection:

WhatValues
Windows Update serverWUServer, WUStatusServer, UpdateServiceUrlAlternate, UseWUServer
Microsoft DefenderDisableAntiSpyware, DisableRealtimeMonitoring, DisableBehaviorMonitoring, DisableOnAccessProtection, DisableIOAVProtection, and every key or value whose name starts with Exclusions (the exclusion lists)
User Account ControlEnableLUA, ConsentPromptBehaviorAdmin, FilterAdministratorToken, LocalAccountTokenFilterPolicy

Such values are refused with denied_registry_key; the form already says so under the key and keeps Set value and Remove value off. Registry changes need a step-up: Set value and Remove value ask for your password.

When removing, an empty value name removes every value under the key. Settings that are not registry-based (security settings, scripts, software installation, preferences) are shown in the report but not changed by Vertex.

Security filtering and delegation​

Vertex sets one trustee's permission on the GPO at a time (Set-GPPermission):

FieldMeaning
TrusteeA user, group or computer of the managed domain by its logon name: name, or DOMAIN\name with the domain's NetBIOS name.
Trustee typeUser, Group or Computer.
LevelSee below.
ReplaceLower an existing higher permission to this level (by default it is only raised).
LevelMeaning
GpoApplyRead and apply the GPO: security filtering.
GpoReadRead only (not applied).
NoneRemove the trustee from the GPO.

Vertex does not delegate edit rights: GpoEdit, GpoEditDeleteModifySecurity and custom permissions are refused (gpo_permission_not_allowed), because whoever can edit a GPO can change it outside Vertex's registry rules. Give them with the Group Policy Management Console.

The trustee must be a user, group or computer below a managed OU that is not protected: other accounts (built-in groups such as Authenticated Users or Domain Admins, accounts outside the managed OUs) are refused with out_of_scope, protected or not_found. A trustee of another domain (another DOMAIN\ prefix, NT AUTHORITY\…, or name@domain) is refused with foreign_trustee; Vertex knows the domain's NetBIOS name after the first connection test, and until then accepts only name. The domain controller looks the trustee up, checks it and grants the permission to that account by its SID, never to the name as typed. Permission changes need a step-up.

To apply a GPO to one group only: give that group GpoApply, then set Authenticated Users to GpoRead with Replace. Keep read access for Authenticated Users (or Domain Computers): computers must be able to read a GPO to process it. Authenticated Users is a built-in group, so change its permission with the Group Policy Management Console.

Backups​

A GPO can be backed up on the domain controller on request, and Vertex does the same automatically before every change of a GPO's name, status, comment or registry settings and before deleting it. The backups are in %ProgramData%\Entrosity\Vertex GPO Backups on the domain controller, with a comment such as Entrosity Vertex: before delete; an operation's result shows the backup's ID. Restore them on the domain controller with the Group Policy Management Console (Manage Backups) or Restore-GPO. Vertex does not restore backups and does not remove old ones.

The default domain policies​

The Default Domain Policy ({31B2F340-016D-11D2-945F-00C04FB984F9}) and the Default Domain Controllers Policy ({6AC1786C-016F-11D2-945F-00C04FB984F9}) are read-only in Vertex: renaming, changing their status or settings, their permissions and deleting them are refused (protected), both by Vertex and on the domain controller. They are listed and their reports can be read and backed up. Change the domain's password and lockout policy there with the Group Policy Management Console, or use fine-grained password policies.