Customised ADM files can be used to manage registry stamping, controlled through standard Group Policy Objects. Due to the nature of how these template values are stored, and combined with standard sysvol Group Policy structure, it's not always to find templates, policies and what settings will be applied. This post provides several command-line methods.
Find customised policies. These ADM files are replicated throughout the domain and are considered authoritative:
- dir \\%fqdn%\sysvol\%fqdn%\*.adm /s
- dir \\test.com.au\sysvol\test.com.au\*.adm /s/b find /i /v "wuau.adm" find /i /v "system.adm" find /i /v "wmplayer.adm" find /i /v "inetres.adm" find /i /v "conf.adm"
- dsquery * "CN=Policies,CN=System,DC=domainRoot" -filter '&(objectCategory=groupPolicyContainer)(cn=%GUID%)' -attr Name displayName
- dsquery * "CN=Policies,CN=System,DC=domainRoot" -filter "&(objectCategory=groupPolicyContainer)(cn={F0A33B85-963E-4dF5-A425-E6E0894732DB})" -attr Name displayName
- Use GPMC to edit the GPO
- Select the Administrative Templates, right-click, select 'Add/Remove Templates'
- Select the local copy of the customised ADM file
- This copies the adm file to the GUID GPO in the replicated sysvol area. (eg. file://dc.test.com.au/sysvol/test.com.au/Policies/%7BF0A33B85-963E-4dF5-A425-E6E0894732DB%7D/adm/Test.adm)
- Clear the 'Only show policy settings that can be fully managed' setting in View - filtering
- Navigate to the hierarchy added through the ADM
- Enable settings as appropriate
- Find the registry.pol for the GPO, see the commands above.
- regview Registry.pol
- This should first be performed in a test-lab environment, before adding the ADM to the production sysvol area.
- These settings are not visible by default, as GPMC hides policy settings that cannot be fully managed. To change, Computer Configuration or User Configuration Administrative Templates View Filtering 'Only show policy settings that can be fully managed' unticked.
- Customised template settings to not show up in the 'Settings' tab of GPMC
- Regview.exe can be found in the Windows Server 2003 Deployment Kit
Wayne's World of IT (WWoIT), Copyright 2008 Wayne Martin.
No comments:
Post a Comment