GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing ss64.com — Secedit - Windows Security Configuration - SS64 SECEDITWindows Security Configuration, configure and analyze system security by comparing the current security configuration against a security template. Syntax
Analyze current systems settings against baseline settings that are stored in a database:
SECEDIT /analyze /db database_filename [/cfg configuration_filename] [/overwrite]
[/log log_filename] [/quiet}]
Configure a system with security settings:
SECEDIT /configure /db database_filename [/cfg configuration_filename] [/overwrite]
[/areas [securitypolicy | group_mgmt | user_rights | regkeys | filestore | services]]
[/log log_filename] [/quiet]
Export security settings stored in a database:
SECEDIT /export [/db database_filename] [/mergedpolicy] /cfg configuration_filename
[/areas [securitypolicy | group_mgmt | user_rights | regkeys | filestore | services]]
[/log log_filename] [/quiet]
Import a security template into a database:
SECEDIT /import /db database_filename /cfg configuration_filename [/overwrite]
[/areas [securitypolicy | group_mgmt | user_rights | regkeys | filestore | services]]
[/log log_filename] [/quiet]
Generate a rollback template with respect to a configuration template:
SECEDIT /generaterollback /db database_filename /cfg configuration_filename
/rbk rollback_template_filename [/log log_filename] [/quiet]
Validate the syntax of a security template:
SECEDIT /validate configuration_filename
Key
/db The path and file name of the database containing the stored configuration
against which the analysis or export is performed.
Default is typically C:\windows\security\database\secedit.sdb
If the file name specifies a database that hasn't had a security template (as represented by the
configuration file) associated with it, the /cfg configuration_filename option must also be specified.
/cfg The path and file name for the security template that will be imported into the database for analysis
or exported when using the /export flag.
If the /db database_filename parameter isn't also specified, the analysis will be performed against
any configuration already stored in the database.
/mergedpolicy
Merge and export domain and local policy security settings.
/overwrite Whether the security template in the /cfg parameter should overwrite any template or composite template
that is stored in the database, instead of appending the results to the stored template.
This option is only valid when the /cfg configuration_filename parameter is also used.
If this parameter isn't also specified, the template in the /cfg parameter is appended to the stored template.
/areas The security areas to be applied to the system.
If this parameter is not specified, all security settings defined in the database are applied to the system.
To configure multiple areas, separate each area by a space.
Supported security areas:
securitypolicy : Local policy and domain policy for the system, including account policies, audit policies,
security options, and so on.
group_mgmt : Restricted group settings for any groups specified in the security template.
user_rights : User logon rights and granting of privileges.
regkeys : Security on local registry keys.
filestore : Security on local file storage.
services : Security for all defined services.
/rbk A security template into which the rollback information is written. Required for /generaterollback.
Security templates are created using the Security Templates snap-in.
Rollback files can be created with this command.
/log The path and file name of the log file to be used in the process.
If you don't specify a file location, the default log file,
systemroot\Documents and Settings\UserAccount\My Documents\Security\Logs\databasename.log is used.
configuration_filename
The path and file name for the security template that will be validated.
Log files aren't updated by this command. Required for /validate.
/quiet Suppress screen output.
You can still view analysis results by using the Security Configuration and Analysis snap-in to the
Microsoft Management Console (MMC).
If no filepath is specified, all filenames will default to the current directory. Your analysis results are stored in a separate area of the database and can be viewed in the Security Configuration and Analysis snap-in to the MMC. Running Secedit /configure is equivalent to making changes within the GUI snap-in SecPol.msc however if the policy editor is open when changes are made at the command line, you will need to close and reopen it to see the changes. If your security templates are created by using the Security Template snap-in, and if you run the Security Configuration and Analysis snap-in against those templates, the following files are created:
ExamplesPerform the analysis for the security parameters on the security database, SecDbSS64.sdb, and then direct the output to the file logSS64, including prompts to verify the command ran correctly: To incorporate changes required by the analysis process on the SS64.inf file, and then to direct the output to the existing file, logSS64, without prompting:
Verify System Compliance, compare your current system settings against a predefined security template to see where the vulnerabilities are
To incorporate changes required by the analysis process on the SS64.inf file, and then to direct the output to the existing file, logSS64, without prompting:
Export Current Policy to a Readable File,
To export the security database and the domain security policies to an inf file. This file can later be imported to a different database in order to replicate the security policy settings on another computer:
To import the example file to a different database on another computer:
To configure/apply the example file to a different database on another computer:
Create a rollback configuration file, for the previously created SecTmplSS64.inf file, while saving the original settings, and then write out the action to the logSS64 log file:
Export the security database and the domain security policies to an .inf file, and then to import that file to a different database to replicate the policy settings on another computer:
Import just the security policies portion of the file to a different database on another computer:
Reset Security Settings to Defaults, if a machine has been overly hardened or misconfigured, you can reset the security descriptors to the original Windows installation state using the defltbase.inf file:
“Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing” ~ Helen Keller, The Open Door (1957) Related commandsParse-SecPol and Set-SecPol - A Pair of functions to read/write Policy files (SO). Copyright © 1999-2026 SS64.com
Some rights reserved | ||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |