Академический Документы
Профессиональный Документы
Культура Документы
Section Objectives
Section Overview
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSize
1/26
16/11/2014
One of the most important functions of Group Policy is to modify the registry, and registrybased policy is implemented via something called Administrative Templates. These
templates are nothing more than specially formatted text files. This section explains the logic
behind Administrative Templates, when to use them, and even the basics of how to write
them. This section also explains how to deploy templates by loading legacy ADM templates
into the Group Policy Management Editor, and by copying ADMX templates to the Central
Store.
2/26
16/11/2014
In both the Computer Configuration and User Configuration nodes of the Group Policy
console, there is a folder named Administrative Templates. The existence of this folder is
confusing because many of the settings that you find under the Administrative Templates
nodes deal with software settings and windows settings, and yet those two areas have their
own separate nodes in the policy console.
The explanation for this apparent contradiction might help you understand how the Group
Policy console is organized. In a nutshell:
The Administrative Templates node contains settings that can be implemented solely
through the registry and that are specified by files having the extension .adm.
Microsoft calls these settings registry-based policy.
The other nodes, Software Settings and Windows Settings, contain settings that are likely
to involve files outside the registry (such as scripts, software packages, etc.) and these
settings are not specified by *.adm files.
Helpful Hint
Do not worry too much if you see settings in different console nodes that appear
to belong together thematically, but do not. The top levels of the Group Policy console are
organized according to whether settings are implemented via *.adm files, not according to
topic.
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSize
3/26
16/11/2014
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSize
4/26
16/11/2014
Windows 2000 and later Group Policy settings are located in one of four registry locations:
HKLM\Software\Policies
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies
HKCU\Software\Policies
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSize
5/26
16/11/2014
The first and third locations in this list are preferred, but policy settings in any of these four
locations are recognized as true policies.
The older Windows NT 4-style System Policy Editor, and the ADM templates that it used,
would place policy settings in a wide variety of registry locations. This created problems with
security and with tattooing, or the undesired persistence of policy settings. Sometimes, you
may find it necessary to tattoo the registry with a setting that does not correspond to any of
the above four locations.
Settings that exist somewhere other than the above four locations are recognized as
preferences rather than true policies because it is possible for the user to change them by
using Regedit. On the other hand, if a user changes a true policy with Regedit, it will be
changed back to the original setting at the next policy refresh.
Helpful Hint
Remember that you can cause preferences to display in the Group Policy console
using the procedures described for Poledit templates.
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSize
6/26
16/11/2014
7/26
16/11/2014
In Windows 2000, the following standard templates are not installed into the Group Policy
console by default:
Common.adm: Settings common to Windows NT and Windows 95 or Windows 98;
Poledit style
Conf.adm: Microsoft NetMeeting settings
Inetcorp.adm: IEAK corporate settings
Inetset.adm: Settings for Windows Internet Explorer defaults that were not included in the
IEAK wizard
Windows.adm: Windows 95 policy settings; Poledit style
Winnt.adm: Windows NT policy settings; Poledit style
Wmp.adm: Windows Media Player policy settings
If you install Windows 2000 Service Pack 3, you will have the following ADM files:
Wmplayer.adm: Windows Media Player settings, versions 8 and 9
Wuau.adm: Service Pack 3: Windows Update Automatic Update
In Windows XP, the following standard template is not installed into the console by default:
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSize
8/26
16/11/2014
If you install Windows XP Service Pack 1, you will have the following ADM file:
Wuau.adm: Service Pack 1; Windows Update Automatic Update
Helpful Hint
Microsoft recommends that all Active Directory administrators run Windows XP with the
updated ADM files. If you run Windows XP and administer a GPO that has an outdated
ADM file, your computer will automatically update the ADM files of the GPO as long as the
new files reside in the server. Therefore, if you have Windows 2000 Server, you should
manually update the ADM files in the Windows 2000 Server Inf folder by copying them from
a Windows XP computer and then using the Add/Remove Template command to remove
the old and add the new.
In Windows Server 2003, the following standard templates are available, but not installed into
the Group Policy console by default:
Common.adm: Settings common to Windows NT and Windows 95 or Windows 98,
Poledit style
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSize
9/26
16/11/2014
Poledit Templates
The standard ADM files for use with Poledit, the System Policy Editor, in Windows NT 4
are:
Common.adm: Settings common to Windows NT and Windows 95 or Windows 98
Winnt.adm: Windows NT policy settings
The standard ADM file for use with System Policy Editor in Windows 95 is:
Windows.adm
Microsoft does not recommend using Windows NT 4, Windows 95, or Windows 98-style
ADM files with Windows 2000, Windows XP, or Windows Server 2003.
If you do use these older templates, or if you create your own custom ADM files that make
registry settings that are different from the four approved registry keys for Group Policy, the
default MMC behavior is for them not to appear. You can force them to show up with the
procedures described below.
Showing Custom ADM Templates in Windows 2000
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
10/26
16/11/2014
To show your custom ADM templates in Windows 2000, follow these steps:
1.
2.
3.
2.
3.
Select Filtering.
4.
Clear the Only show policy settings that can be fully managed check box.
If you force Windows NT 4-style policies to appear in the console, they will appear in red
icons.
Windows 2000 and later Group Policy settings will appear in blue.
You can force the Show Policies Only option to always be enabled by configuring the
following policy option: User Configuration, Policies, Administrative Templates, System,
Group Policy, and Enforce Show Policies Only
11/26
16/11/2014
With the Office templates you can control hundreds of different settings between the
Computer and User configuration sections.
These settings control the behavior of all Microsoft Office applications and settings that are
generally available inside the applications themselves and many settings that are not usually
configurable.
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
12/26
16/11/2014
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
13/26
16/11/2014
A Simple Example
Here is an example of a custom ADM template that contains a single policy entry, the
SourcePath value in the registry that indicates where Windows 2000 was originally installed
from. You might want to modify this value from time to time, as for example if the
distribution server that was used to install client operating systems is renamed. The reason is
that Windows 2000 and Windows XP use the SourcePath value after installation. For
example:
You install a device driver that is not contained in driver.cab.
Windows File Protection needs to reinstall an operating system file that is in neither
dllcache nor driver.cab.
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
14/26
16/11/2014
CATEGORY !!Administrative
POLICY !!SetupSourcePath
KEYNAME "Software\Microsoft\Windows\
currentVersion\Setup"
PART
!!SourcePathBox EDITTEXT
VALUENAME "SourcePath"
END PART
Here the EDITTEXT indicates that the administrator is to edit a text box, rather than click a
check box, for example.
Including the following line provides explanatory text:
EXPLAIN !!SourcePathExplain
When you add more details, you end up with the following:
Filename: SOURCE.ADM
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
15/26
16/11/2014
CLASS MACHINE
CATEGORY
!!Administrative
POLICY !!SetupSourcePath
KEYNAME "Software\Microsoft\Windows\
CurrentVersion\Setup"
PART
!!SourcePathBox EDITTEXT
VALUENAME
"SourcePath"
END PART
EXPLAIN !!SourcePathExplain
END POLICY
END CATEGORY
[STRINGS]
;
convenience.
Administrative="Acme System Settings"
SetupSourcePath="Change Setup Source Path"
SourcePathBox="Enter the path to the Windows distribution
share:"
SourcePathExplain= "Change this value if you rename the
distribution server on the
network that contains the \I386 folder.\n\nThis server
location must be available in certain
situations, such as when installing a new device driver
that is not contained in
DRIVER.CAB, or when Windows File Protection attempts to
restore a file that is not
contained in DLLCACHE or DRIVER.CAB."
To view the new setting, you need to turn on the ability of the MMC to view preferences as
opposed to true policies.
Loading Additional ADM Templates
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
16/26
16/11/2014
2.
Right-click the Administrative Templates node in the tree pane (either in Computer
Configuration or in User Configuration. The software vendor will typically advise as
to the correct procedure.)
3.
4.
Click Add.
5.
Browse to the template you wish to add, highlight it, and click Open.
6.
Remember that if you add a template that contains preferences rather than true policy settings,
you will need to set the MMC to view those preferences, because the default behavior is to
hide them.
Using the Policy Template Editor
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
17/26
16/11/2014
18/26
16/11/2014
applications and new parts of the operating system into Group Policy. Formerly, the ADM
files followed a format that was unique to Group Policy and was not based upon any
established standard.
Administrative Templates are now based on an XML file format. The new GPO tools can
read both the older ADM files and the newer ADMX files. All ADMX files can be stored
centrally in Sysvol.
19/26
16/11/2014
ADMX Files
The new ADMX file structure allows for language independence. Language files can be
created independently of the actual ADMX file settings themselves.
ADMX settings are stored separately from the GPO. When an ADMX setting is configured,
only that item is copied into the GPO. This leads to much smaller GPO file sizes.
ADMX files are based upon an XML file structure that is a more widely adopted standard and
allows for extensibility.
20/26
16/11/2014
CSS
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
21/26
16/11/2014
GPO
GUI
GUID
HKCU
HKLM
HTML
IEAK
KB
kilobytes
MDB
Microsoft database
MMC
VBA
XML
Section Review
Summary
The benefits of using ADM templates are:
Application users: Individual application settings can be customized centrally.
Operating system users: Operating system settings can be configured or restricted from
a central location.
Software developers: The ADM file methodology gives you a structured, predefined
way of giving your customer the ability to manage software settings centrally, through a
console that they are already using to manage the Active Directory environment.
Many varieties of standard templates are included with each version of Windows.
The standard templates that are common to Windows 2000, Windows XP, and
Windows Server 2003 are:
o System.adm
o Inetres.adm
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
22/26
16/11/2014
o Conf.adm
o Wuau.adm
The standard templates that are used with Poledit are:
o Common.adm
o Winnt.adm
o Windows.adm
Some of the Office ADM templates include:
o Access10.adm
o Excel10.adm
o Outlk10.adm
o Word10.adm
Use the following tips to write your custom ADM templates:
Use the semicolon character (;) at the start of a line to indicate a comment.
To prevent Windows NT systems from accidentally loading your Windows 2000,
Windows Server 2003, or Windows XP ADM files, include a section beginning with #if
version <= 2 and ending with #endif that merely displays explanatory text advising the
administrator that this policy file requires Windows 2000 (or another operating system).
Version 2 signifies the Windows NT policy editor, version 3 signifies the Windows 2000
console, and version 4 signifies the Windows XP console.
The advantages of using the new ADMX file format are:
The file structure allows for language independence.
ADMX settings are stored separately from the GPO.
ADMX files are based upon an XML file structure that is a more widely adopted
standard and allows for extensibility.
The ADMX Migrator tool converts ADM templates to ADMX templates and also creates
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
23/26
16/11/2014
Knowledge Check
1.
2.
b.
c.
d.
3.
What are the advantages of using the new ADMX file format?
4.
List the tips that you should use to write your custom ADM templates.
5.
Which ADM templates are included in Windows 2000, Windows XP, and Windows
Server 2003? (Choose all that apply.)
6.
a.
System.adm
b.
Conf.adm
c.
Inetres.adm
d.
Pub10.adm
24/26
16/11/2014
1.
2.
3.
b.
c.
d.
What are the advantages of using the new ADMX file format?
The file structure allows for language independence.
ADMX settings are stored separately from the GPO.
ADMX files are based upon an XML file structure that is a more widely adopted
standard and allows for extensibility.
4.
List the tips that you should use to write your custom ADM templates.
Use the semicolon character (;) at the start of a line to indicate a comment.
Include a section beginning with #if version <= 2 and ending with #endif that
merely displays explanatory text advising the administrator that this policy file
requires Windows 2000 (or another operating system).
5.
Which ADM templates are included in Windows 2000, Windows XP, and Windows
Server 2003? (Choose all that apply.)
a.
System.adm
b.
Conf.adm
c.
Inetres.adm
d.
Pub10.adm
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
25/26
16/11/2014
6.
https://skillpipe.courseware-marketplace.com/reader/en-GB/Book/BookPrintView/b6175ac1-149e-4f52-83bd-6350c9133320?ChapterNumber=13&FontSiz
26/26