Secedit command: generaterollback in Windows
Secedit: generaterollback command allows you to create rollback patterns for the specified configuration template.To better understand how to use this command, see the example below.
Syntax command secedit: generaterollback
Secedit / generaterollback / db / cfg / rbk [log] [/ quiet]
The secedit command: generaterollback command
Parameters
Describe
db
This is a required parameter.
Specify the path and name of the database file containing the stored configuration to conduct the analysis.
If the database designation name does not have a security template (as indicated by the configuration file) associated with it, the command line / cfg option must also be specified according to
cfg
This is a required parameter.
Specify the path and name for the security template to be entered into the database for analysis.
This optional parameter / cfg is only valid when used with the parameter / db.
If this parameter is not specified, the analysis will be performed for any configuration stored in the database.
rbk
This is a required parameter.
Specify a security pattern in which rollback information is written.Security templates are created with attachments of Security Templates.Rollback files can be created with this command.
log
Optional parameters.
Specify the path and name of the log file to be used in the process.
quiet
Optional parameters.
Do not display the output on the screen.You can still view the analysis results by using the Security Configuration and Analysis attachment on Microsoft Management Console (MMC).
Secedit: generaterollback command
- If the path for the log file is not provided, the default log file, (systemrootUsers * UserAccountMy DocumentsSecurityLogs * DatabaseName.log) will be used.
- Starting withWindows Server 2008, the Secedit / refreshpolicy subcommand has been replaced with gpupdate.For more information on how to refresh security settings, see the Gpupdate command.
- Successful running of this command will be notified by the 'The task has completed successfully' status and only the mismatch between the stated security form and configuration of the new security policy will be recorded.These mismatches will be listed in scesrv.log.
- If an existing rollback pattern is specified, this command will override it.You can create a new rollback pattern with this command.Condition is without additional parameters.
Secedit: generaterollback command
After creating security templates using the snap-in of Security Configuration and Analysis is SecTmplContoso.inf, to create the rollback configuration file to save the original settings, enter:
Secedit / generaterollback / db C: SecurityFY11SecDbContoso.sdb / cfg sectmplcontoso.inf / rbk sectmplcontosoRBK.inf / log C: SecurityFY11SecAnalysisContosoFY11.log
See more:
- Summary of 20 common Run commands on Windows operating system
- Overview of Windows Server 2008
- Basic Linux commands everyone needs to know
- Table summarizes the basic PowerShell commands
You should read it
May be interested
- Set command in Windowsthe set command helps show, set or remove cmd.exe environment variables.
- Del command in Windowsthe del command deletes one or more files. this command is the same as the eraser command.
- 10 useful commands in Windows you should knowcommand prompt is used to execute batch files, perform tasks quickly, help you troubleshoot and solve some windows problems when the system crashes. however, not all commands in windows are useful and must be done regularly. with the 10 command lines in the following article it is very useful even if you are not an administrator.
- How to use the option equivalent to the 'ls' command in Windowsthe 'ls' command (note ls, not is) is one of the first terminal commands veterans teach to linux beginners.
- The command reg add in Windowsthe reg add command adds new subkeys or entries to the registry.
- Rem command in Windowsthe rem command helps write comments (comments) in a batch file or config.sys.
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.