@@ -43,6 +43,34 @@ those of the [Git configuration][config] settings.
4343The type of each registry key can be either ` REG_SZ ` (string) or ` REG_DWORD `
4444(integer).
4545
46+ ### Group Policy templates
47+
48+ Windows Group Policy Administrative Templates (ADMX/ADML) for GCM are available
49+ in the [ ` src/windows/policy-templates ` ] [ policy-templates ] directory. Copy the
50+ files to the local or domain policy definitions folder:
51+
52+ ** Local machine:**
53+
54+ ``` text
55+ GitCredentialManager.admx → %SystemRoot%\PolicyDefinitions\
56+ en-US\GitCredentialManager.adml → %SystemRoot%\PolicyDefinitions\en-US\
57+ ```
58+
59+ ** Domain (Active Directory):**
60+
61+ ``` text
62+ GitCredentialManager.admx → \\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions\
63+ en-US\GitCredentialManager.adml → \\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions\en-US\
64+ ```
65+
66+ After installing the templates, GCM settings appear under
67+ ** Computer Configuration > Administrative Templates > Git Credential Manager**
68+ in the Group Policy Management Editor.
69+
70+ The templates are generated from the [ Git configuration] [ config ] reference using
71+ the ` generate-admx.ps1 ` script in the same directory. Re-run the script whenever
72+ the documentation changes to keep the templates up to date.
73+
4674### 32-bit / x86
4775
4876When running the 32-bit (x86) version of GCM on a 64-bit (x64 or ARM64)
@@ -119,3 +147,4 @@ they will not be reflected in an already running process.
119147
120148[ environment ] : environment.md
121149[ config ] : configuration.md
150+ [ policy-templates ] : ../src/windows/policy-templates
0 commit comments