Skip to content

Commit 98c43c8

Browse files
Copilotpl4nty
andauthored
Add Windows Group Policy ADMX/ADML templates and generator script
Co-authored-by: Tom Plant <tom@tplant.com.au>
1 parent 92a1fd6 commit 98c43c8

File tree

4 files changed

+1600
-0
lines changed

4 files changed

+1600
-0
lines changed

docs/enterprise-config.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,34 @@ those of the [Git configuration][config] settings.
4343
The 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

4876
When 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

Comments
 (0)