Microsoft KB Archive/816119

= HOW TO: Use the Secedit.sdb Database to Perform a Security Analysis in Windows Server 2003 =

Article ID: 816119

Article Last Modified on 2/28/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)

-



For a Microsoft Windows 2000 version of this article, see Q318711



IN THIS TASK

 * SUMMARY
 * How to Start the Security Configuration and Analysis Snap-In
 * How to Perform the Security Analysis
 * How to View the Results
 * REFERENCES



SUMMARY
This step-by-step article describes how to use the Secedit.sdb database to analyze your security settings. This analysis can identify security holes that may exist in your current configuration, and can also identify changes that will occur if you use a security template to configure your computer.

You can analyze your current settings against a baseline template at any time. This analysis is useful for several reasons:
 * To identify security holes that may exist in a current configuration.
 * To identify the changes that a security policy may make before you actually deploy the security policy.
 * To identify deviations from a policy that is currently imposed on a computer.

back to the top

How to Start the Security Configuration and Analysis Snap-In

 * 1) Click Start, click Run, type mmc in the Open box, and then click OK.
 * 2) On the Console menu, click File, click Add\Remove Snap-in, and then click Add.
 * 3) In the list of available stand-alone snap-ins, click Security Configuration and Analysis, and then click Add.
 * 4) In the list of available stand-alone snap-ins, click Security Templates, and then click Add.
 * 5) Click Close, and then click OK.

back to the top

How to Perform the Security Analysis
You can use the Secedit.sdb database to compare local security settings against Group Policy settings that are downloaded from a domain:
 * 1) Start Windows Explorer, and then open the WINDOWS\Security\Database folder.
 * 2) Make a copy of the Secedit.sdb database.

That database contains local security settings.
 * 1) Quit Windows Explorer, and then switch to the Microsoft Management Console (MMC) window.
 * 2) Right-click Security Configuration and Analysis, and then click Open Database.
 * 3) Click the copy of the Secedit.sdb file that you created in the WINDOWS\Security\Database folder, and then click Open.

Note that you receive an error message if you try to load the original Secedit.sdb file.
 * 1) Right-click Security Configuration and Analysis, and then click Analyze Computer Now.
 * 2) In the Error log file path box, type C:\WINDOWS\Security\Logs\Mysecure.log.

NOTE: If Windows Server 2003 is installed in a folder other than the C:\WINDOWS folder, modify the path that you type to match your installation.
 * 1) Click OK. After the analysis is complete, the security areas are available under the Security Configuration and Analysis node.

back to the top

How to View the Results
 In the left pane, expand the Security Configuration and Analysis node. Click the Description bar to expose the database with which you are working. If the Description bar is not visible, click Customize on the View menu, and then click to select the Description bar check box. Expand the Local Policies node, and then click Security Options.

Notice that both the database setting and the actual system setting are displayed in the right pane for each object.  Differences are marked with a red flag. Consistencies are marked with a green check mark. If there is no flag or check mark, the security setting is not specified in the security database.</ul>

You can double-click any setting to investigate differences.</li></ol>

back to the top

Keywords: kbsecurityservices kbinfo kbhowto KB816119

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.