Skip to content

Lesson 7 of 14 · 15m

What gpupdate Actually Does

Clients pull GPOs from SYSVOL on a refresh cycle, client-side extensions interpret registry.pol, Preferences tattoo while Policies revert, and cpassword is the permanent lesson.

What gpupdate actually does

A GPO is a folder under \\<domain>\SYSVOL\<domain>\Policies\{GUID} — replicated between DCs by DFSR — plus a link and a security descriptor in AD. The client doesn't read it on a schedule you control; it pulls. Workstations and member servers refresh every 90 minutes with a random offset of 0–30; DCs refresh every 5 minutes. The security extension re-applies every 16 hours even if nothing changed. gpupdate /force is "pull now and re-apply everything"; gpupdate /target:computer narrows it to the machine half.

On the client, the work is done by client-side extensions — DLLs that each interpret a slice of the GPO. The registry CSE reads Machine\registry.pol and User\registry.pol — a binary format whose PReg signature you can spot with a hex viewer — and stamps the approved keys. Other CSEs handle their own payloads: security templates, startup and logon scripts (still the quiet deployment vector nobody inventories), folder redirection, and every Group Policy Preferences item — drive maps, registry items, local users, scheduled tasks.

There's a second consistency check worth knowing: each GPO is a versioned pair — the AD-side container (GPC) and the SYSVOL-side files (GPT) carry a versionNumber / GPT.INI version that must match; DFSR lag between DCs is how a GPO "edit" shows up differently on two clients five minutes apart.

Policies revert; Preferences tattoo

This is the distinction that explains years of ghost configuration. Administrative Templates settings live in four sanctioned registry keys — HKLM\Software\Policies, HKLM\Software\Microsoft\Windows\CurrentVersion\Policies, and the HKCU twins — which Windows treats as volatile. When the GPO falls out of scope, those values revert. Group Policy Preferences write ordinary registry keys and files that stay. A drive map pushed by Preferences persists after you unlink the GPO — tattooed — unless you checked "Remove this item when it is no longer applied" on the item. Every mystery mapping and zombie local account you've inherited is a Preferences item that outlived its GPO.

Preferences earn that risk back with item-level targeting: every item can carry its own targeting expression — only for this security group, only on OS builds above 22000, only when a file exists, only on this site. It's the feature that turns Preferences from "spray it everywhere" into surgical configuration, and it's the reason a GPO can look empty in the registry view yet still deliver items.

The central store, and the cpassword lesson

GPMC doesn't render settings from a database — it renders ADMX files, XML templates that describe each setting's registry path, value, and supported-on range. If every admin edits GPOs with the ADMX files on their own box (C:\Windows\PolicyDefinitions), versions drift and the console shows "extra registry settings" it can't parse. The fix is the central store: copy PolicyDefinitions — ADMX plus the adml language folders — to \\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions. Every GPMC then reads the same templates. Do it once, keep it updated with each Windows release's ADMX drop.

The cautionary tale lives in SYSVOL too. Group Policy Preferences could once set local-account passwords, stored as cpassword — AES-256 — in XML files under SYSVOL, readable by any authenticated user. Microsoft published the key. MS14-025 / CVE-2014-1812 killed the feature in May 2014, but any cpassword still sitting in SYSVOL is a decrypted credential waiting for the next pentest:

findstr /s /i cpassword \\contoso.local\SYSVOL\contoso.local\Policies\*.xml

The same drift problem exists inside GPO edits: a setting introduced in a Windows 11 ADMX simply doesn't render on a Server 2019 GPMC — which is another reason the central store follows the newest OS in your fleet, not the oldest.

The practical close: create the central store, treat Preferences as permanent configuration (set the remove flag or plan cleanup), keep gpupdate /force as the test-bench verb — and grep SYSVOL for cpassword today.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.