Microsoft KB Archive/816297

= HOW TO: Define Security Templates By Using the Security Templates Snap-In in Windows Server 2003 =

Article ID: 816297

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition

-



IN THIS TASK

 * SUMMARY
 * Add the Security Templates Snap-In to a Microsoft Management Console (MMC) Console
 * Create and Define a New Security Template
 * Copy Security Settings from a Predefined Template to Another Template
 * Create a New Security Template Based on a Predefined Template
 * REFERENCES



SUMMARY
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.

back to the topWith 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
 * Registry: Registry key permissions
 * File system: File and folder permissions

back to the top

Add the Security Templates Snap-In to a Microsoft Management Console (MMC) Console
To add the Security Templates snap-in to a MMC console, follow these steps:
 * 1) Click Start, and then click Run.
 * 2) In the Open box, type mmc, and then click OK.
 * 3) On the File menu, click Add/Remove Snap-in.
 * 4) In the Add/Remove Snap-in dialog box, click the Standalone tab, and then click Add.
 * 5) In the Add Standalone Snap-in dialog box, click Security Templates, click Add, click Close, and then click OK.
 * 6) In the console tree, expand Security Templates, and then expand %SystemRoot%\Security\Templates.

A list of predefined security templates and their descriptions appears in the right pane.

back to the top

Create and Define a New Security Template
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.</li></ol> </li> To define a Restricted Groups policy, follow these steps: <ol style="list-style-type: lower-alpha;"> Right-click Restricted Groups, and then click Add Group.</li> Click Browse.</li> In the Select Groups dialog box, type the name of the group that you want to restrict access, click OK, and then click OK.</li> In the  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.</li> Click OK.</li></ol> </li> To define a System Services policy, follow these steps: <ol style="list-style-type: lower-alpha;"> Expand System Services.</li> In the right pane, double-click the service that you want to configure.</li> Specify the options that you want, and then click OK.</li></ol> </li> To define security for registry keys, follow these steps: <ol style="list-style-type: lower-alpha;"> Right-click Registry, and then click Add Key.</li> In the Select Registry Key dialog box, click the registry key that you want to define security for, and then click OK.</li> In the Database Security for  dialog box, specify the permissions that you want for the registry key, and then click OK.</li> In the Add Object dialog box, specify how you want permissions on this key inherited, click OK, and then click OK.</li></ol> </li> To define security for files or folders, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click File System, and then click Add File.</li> <li>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.</li> <li>In the Database Security for  dialog box, specify the permissions that you want, click OK, and then click OK.</li></ol> </li></ol>

back to the top

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:
 * 1) 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.
 * 2) 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.

back to the top

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:
 * 1) Right-click the template that you want to copy, and then click Save As.
 * 2) 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.

back to the top

<div class="references_section">