System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
This step-by-step article describes how to create and define
a new security template by using the Security Templates snap-in in Microsoft
Windows Server 2003.
With the Security Templates snap-in, you can create a security
policy for your network or computer by using security templates. A security
template is a text file that represents a security configuration. You can apply
a security template to the local computer, import a security template to Group
Policy, or use a security template to analyze security. You can use a
predefined security template that is included in Windows Server 2003, modify a
predefined security template, or create a custom security template that
contains the security settings that you want. Security templates can be used to
define the following components:
Account Policies
Password policy
Account lockout policy
Kerberos policy
Local policies
Audit policy
User rights assignment
Security Options
Event log: Application, System, and Security Event log
settings
Restricted groups: Membership of security-sensitive
groups
System Services: Startup modes and permissions for system
services
To define a new security template, follow these steps:
In the console tree, expand Security
Templates.
Right-click
%SystemRoot%\Security\Templates, and then click New
Template.
In the Template name box, type a name for
the new template.
If you want, you can type a description in the
Description box, and then click
OK.
The new security template appears in the list of
security templates. Note that the security settings for this template are not
yet defined. When you expand the new security template in the console tree,
expand each component of the template, and then double-click each security
setting that is contained in that component, a status of Not
Defined appears in the Computer Setting
column.
To define Account Policies, Local Policies, or Event Log
policies, follow these steps:
In the console tree, expand the component that contains
the security setting that you want to configure.
For example, to set
a maximum password age policy, expand Account Policies.
In the right-pane, double-click the security setting
that you want to configure.
For example, to set the maximum password
age policy, double-click Password Policy, and then
double-click Maximum password age.
Click to select the Define this policy setting
in the template check box, specify the option or setting that you want
as appropriate to the security setting, and then click
OK.
To define a Restricted Groups policy, follow these steps:
Right-click Restricted Groups, and
then click Add Group.
Click Browse.
In the Select Groups dialog box, type
the name of the group that you want to restrict access, click
OK, and then click OK.
In the GroupName
Properties dialog box, under Members of this group,
click Add Members to add the members that you want to the
group.
To add this group as a member of another group, under
This group is a member of, click Add
Groups.
Click OK.
To define a System Services policy, follow these steps:
Expand System Services.
In the right pane, double-click the service that you
want to configure.
Specify the options that you want, and then click
OK.
To define security for registry keys, follow these steps:
Right-click Registry, and then click
Add Key.
In the Select Registry Key dialog box,
click the registry key that you want to define security for, and then click
OK.
In the Database Security for
RegistryKey dialog box, specify the
permissions that you want for the registry key, and then click
OK.
In the Add Object dialog box, specify
how you want permissions on this key inherited, click OK, and
then click OK.
To define security for files or folders, follow these
steps:
Right-click File System, and then
click Add File.
In the Add a file or folder dialog
box, click a file or folder that you want to add security to, and then click
OK.
In the Database Security for
FileName or FolderName dialog box, specify
the permissions that you want, click OK, and then click
OK.
Copy Security Settings from a Predefined Template to Another Template
To copy security settings from a predefined template to your
custom template, follow these steps:
In the console tree, expand a predefined template that
contains the settings that you want to copy, right-click the component that you
want to copy, and then click Copy.
In the console tree, expand your custom template,
right-click the appropriate component, and then click
Paste.
For example, to use the Account Policies
settings from the Hisecdc template in your custom template, expand
Hisecdc, right-click Account Policies, and
then click Copy. Expand your custom template, right-click
Account Policies, and then click
Paste.
Create a New Security Template Based on a Predefined Template
To create a new security template based on settings from a
predefined template, save the predefined template by using another file name.
To do so, follow these steps:
Right-click the template that you want to copy, and then
click Save As.
In the Save As dialog box, type a name for
the security template in the File name box, and then click
Save.
The new security template appears in the list
of security templates. Configure the template with the settings that you
want.
For more information about security templates in Windows
Server 2003, see the "Security Configuration Manager" topic in the Security
section of the Windows 2003 Server documentation. To view this documentation,
visit the following Microsoft Web site: