Understanding Security Templates

Security Templates Overview

With Windows NT 4.0, came the launch of the System Policy Editor feature which enabled administrators to manage the security settings of the system through a single user interface. The System Policy Editor feature allowed administrators to easily manage configurations of multiple computers because configuration settings could be copied between systems.

With the introduction of Windows 2000, the System Policy Editor feature was replaced by Active Directory Group Policy and security templates. Windows 2000, Windows XP, and Windows Server 2003 utilize Active Directory Group Policy and security templates to distribute security configuration settings between computers.

A security template can be defined as a collection of security configuration settings or parameters that can be applied to a domain controller, member server or a workstation. The security configuration settings contained within security templates are stored in text files (inf extension). The settings within a security template are used to control the security configuration of a computer through both local policies and group policies. A security template can be applied to a local computer, or incorporated into a Group Policy object in Active Directory. When a security template is imported into Group Policy, all computers to which the Group Policy object applies will receive the security settings of the particular security template. You can therefore manage one computer or multiple computers through the security settings contained within a security template. For computers that do not belong to an Active Directory domain, you can use the Security Templates snap-in and the Security Configuration and Analysis feature to both create and apply security templates to specific computers.

Security templates enable administrators to create consistent security settings within the organization. In addition, the security settings can also be reproduced. Because the security configuration settings contained within security templates are stored in plain text files, it is easy to work with these files. You can manipulate the files manually (cut and paste) as required. You can also store a number of different security settings within a security template, which enables you to apply different levels of security to computers that have different roles within the organization.

Windows Server 2003 includes predefined security templates that hold security settings for different levels of security. The security level is determined by the type of server that the template is applied to. Security templates can be used to apply a number of security policies and also customize a number of security policies to suit the security requirements of your organization.

There are basically seven Security Template areas identified, where you can configure security for Windows 2000, Windows XP, and Windows Server 2003 networking environments:

Windows Server 2003 Predefined Security Templates

With Windows Server 2003 come a number of predefined security templates that have the following common characteristics:

The predefined security templates can be found in the following directory:

The predefined security templates are categorized according security level, as follows:

The different predefined security templates are listed here:

The secure template provides a good starting point for applying security settings to member servers and workstations.

A few recommendations for improving the secure template security without compromising application functionality as the high security templates typically do are listed below. The security settings listed here are found in the Security Options container and the Audit Policies container of the Local Policies container:

Security Template Settings which Affect Network Security

There are a number of security options under the Local Policy container which impact network security for both servers and clients.

The different security options under Local Policies that affect network security are listed here:

The recommended Security Options to configure to improve network security are listed here:

Implementing the Principle of Least Privilege

Through security templates, you can use the following methods to implement the principle of least privilege:

There are also additional methods, other than using security templates which can be used to implement the principle of least privilege:

Using the Security Templates Snap-In

You can use the Security Templates snap-in to create a security template file which can be deployed using either of these methods:

The Security Templates snap-in can be used to view the predefined security templates or to create and modify security templates.

How to add the Security Templates snap-in to a MMC console

  1. Click Start, and run Mmc.exe from the Run dialog box
  2. Use the File menu to select Add/Remove Snap-In.
  3. Click Add on the Stand-alone tab
  4. Select Security Templates from the list of snap-ins.
  5. In the Add Stand-alone Snap-in dialog box, click Add to include the Security Templates entry to the Add/Remove Snap-in dialog box.
  6. Click close
  7. Click OK in the Add/Remove Snap-in dialog box.

How to copy a predefined security template

  1. First create a MMC console and add the Security Templates snap-in to it.
  2. In the console tree, expand the Security Templates node, and then expand Windows, Security, and then Templates.
  3. Locate and right-click the particular security template which you want to copy, and then click Save As from the shortcut menu.
  4. In the Save As dialog box, provide a name for the new security template and then click the Save button.

How to customize an existing security template

  1. First create a MMC console and add the Security Templates snap-in to it.
  2. Open the Security Templates management console.
  3. Proceed to expand the Security Templates node.
  4. Select the default path folder
  5. Right-click the security template you want to change in the right pane
  6. Click Save As
  7. Enter a name for the security template
  8. Click Save
  9. The security template you just created is displayed in the right pane.
  10. Double-click the new security template to change the security settings.
  11. To change a setting, right-click the appropriate attribute, and then select Properties from the shortcut menu.

How to create a new security template

  1. First create a MMC console and add the Security Templates snap-in to it.
  2. Open the Security Templates management console.
  3. Proceed to expand the Security Templates node.
  4. Right-click the Security Templates node and then select New Template Search Path from the shortcut menu.
  5. Enter the location which will be used to store your new security template. Click OK.
  6. Now, right-click the security template search path, and then click New Template from the shortcut menu.
  7. Enter a name and description for the new security template.
  8. Click OK.
  9. You should now edit your new security template. Through the Security Templates snap-in, you can add security policies to the template.

Applying Security Templates through Group Policies

If you need to configure a large number of computers, you can import a security template into a Group Policy Object (GPO) for an Active Directory site, domain or organizational unit (OU). If you want to view the linked group policies for a site, domain or OU, open the Properties dialog box of the site, domain or OU; and click the Group Policy tab. On the Group Policy tab, you can view all group policies that are linked. The buttons on the Group Policy tab that you can use to configure the GPO are listed here:

How to create a GPO

  1. You need to open the Active Directory Sites And Services console if you want to create a GPO for a site. To open the console, click Start, Administrative Tools, and click Active Directory Sites And Services. You have to use the Active Directory Users And Computers console if you want to create a GPO for a domain or OU. To open the console, click Start, Administrative Tools, and click Active Directory Users And Computers.
  2. In the console which you opened, locate and right-click the site, domain or OU that you want to create a GPO for, and then click Properties on the shortcut menu.
  3. When the Properties dialog box for the site, domain or OU opens, click the Group Policy tab.
  4. Click New.
  5. Provide a name for the GPO.
  6. Click Close.
  7. The new GPO is linked to the site, domain, or OU which you chose in the MMC, by default. The Group Policy settings contained in the GPO are applied for objects in that particular site, domain, or OU.

The default processing order in which Group Policy settings stored in GPOs are applied to a user object or computer object is listed below:

  1. Local GPO
  2. Site GPO
  3. Domain GPO
  4. OU GPO

When multiple site GPOs, domain GPOs and OU GPOs exist, the order in which they are processed can be specified. You can change the processing order of GPOs for a site, domain, or OU by using the steps listed below:

  1. To change the processing order of GPOs for a site, click Start, Administrative Tool, and click Active Directory Sites And Services. To change the processing order of GPOs for a domain or OU, click Start, Administrative Tool, and click Active Directory Users And Computers.
  2. Right-click the particular site, domain, or OU whose GPO processing order you want to change, and click Properties on the shortcut menu.
  3. When the Properties dialog box for the site, domain, or OU opens, click the Group Policy tab.
  4. Click the GPO in the Group Policy Object Links list, and use the Up button or the Down button to change the processing order of the GPO.
  5. The GPO located at the top of the list has the highest priority. GPO processing of the GPOs in the list starts at the bottom of the list, and moves up the list.

How to import a security template into a Group Policy object

  1. Open Active Directory Users and Computers.
  2. Right-click the domain or Organizational Unit wherein the security settings should be applied.
  3. Click Properties.
  4. Select the Group Policy tab.
  5. You can click New to create a new group policy, or you can click Edit to change an existing group policy
  6. In the Group Policy console, expand Computer Configuration, and expand Windows Settings to right-click Security Settings.
  7. Select Import Policy.
  8. Select the security template that should be imported from the list of .INI files.

Applying Security Templates through the Security Configuration And Analysis Snap-In

The Security Configuration and Analysis feature, initially introduced in Windows 2000, enables you to create, modify and apply security settings through the use of security templates. The tool is useful for scanning, analyzing, and setting local system security.

The Security Configuration and Analysis tool is also capable of comparing a security template(s) to the existing security settings of a local computer so that you can identify any potential security discrepancies. Once the analysis is complete, you are shown all detected discrepancies. You should use the Secedit command-line tool to analyze a large number of computers.

The process for using the Security Configuration and Analysis tool is listed here:

  1. Create, or open an existing security configuration and analysis database. This is the database that the Security Configuration And Analysis feature would compare the current security settings of the local computer to.
  2. Analyze the system security of the local computer.
  3. Examine the results of the security analysis, and resolve any reported discrepancies.
  4. Export the security database settings to a security template.

How to save the Security Configuration And Analysis snap-in console under the Administrative Tools menu

  1. Click Start, Run, and enter mmc in the Run dialog box. Click OK.
  2. In the Console menu, click Add/Remove Snap-In, and click Add.
  3. Click Security Configuration And Analysis, and then click Add
  4. Click Close, click OK,
  5. In the Console menu, click Save.
  6. Enter a name for the console, and then click Save.
  7. You can now access the Security Configuration And Analysis console from the Administrative Tools menu.

How to create a security configuration and analysis database

  1. Open the Security Configuration And Analysis console
  2. Right-click Security Configuration And Analysis, and select Open Database on the shortcut menu.
  3. To use an existing database, select the database, and click Open
  4. To create a new database, enter the name of the file in File Name, and click Open
  5. When the Import Template dialog box opens, choose the security template that should be imported into the new database. Click Open.

How to apply a security template to a local policy

  1. Open the Security Configuration and Analysis console
  2. Right-click Security Configuration and Analysis, and then click Open Database from the shortcut menu.
  3. Enter a name for the database, and click Open
  4. Choose a template from the Import Template window. Click Open
  5. Right-click Security Configuration and Analysis, and then click Configure Computer Now to apply the security settings to the local computer

How to analyze the security settings of the local computer

  1. Open the Security Configuration And Analysis console
  2. Right-click Security Configuration And Analysis and then select Analyze Computer Now on the shortcut menu.
  3. When the Perform Analysis dialog box opens, verify that the path specified for the log file is correct. If not, enter the proper path for the log file.
  4. Click OK to start the analysis of the computer.
  5. You can view the contents of the log file by right-clicking the Security Configuration And Analysis, and then clicking View Log File on the shortcut menu.

How to view the security analysis results of the local computer

  1. Open the Security Configuration And Analysis console
  2. Expand Security Configuration And Analysis, expand the appropriate security policies node such as Account Polices or Local Policies, and then select the policy whose results you want to examine.
  3. The analysis results are displayed in the details pane of the Security Configuration And Analysis console.

How to configure system security for the local computer to match the security settings of the security configuration and analysis database

  1. Open the Security Configuration And Analysis console
  2. Right-click Security Configuration And Analysis and then select Configure Computer Now on the shortcut menu.
  3. Accept, or change the path for the log file.
  4. Click OK.

How export the security database settings to a security template

  1. Open the Security Configuration And Analysis console
  2. Right-click Security Configuration And Analysis and then select Export Template on the shortcut menu.
  3. Enter a name for the file in the File Name box; and in the Save In box, enter the path wherein the template should be saved.
  4. Click Save.

Applying Security Templates through Secedit.exe

The secedit.exe command-line tool is basically a command-line version of the Security Configuration And Analysis snap-in which can be utilized to view, analyze, edit, and apply security templates. You should use the Secedit command-line tool to analyze a large number of computers.

The parameters of secedit.exe are listed here:

Testing Security Templates

Before you deploy security settings through security templates, you should test your deployments. A typical testing solution should include the following steps:



Top 5 Free Networking Tools

Bookmark Understanding Security Templates

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.