Command-Line Switches for the Registry Checker Tool
Scanreg.exe [/backup] [/restore] ["/comment=<text>"] [/fix]
Scanreg.exe [backup] [/restore] ["/comment=<text>"] [/fix] [/opt]
Scanregw.exe [/backup] ["/comment=<text>"] [/autoscan] [/scanonly][filename]
Description of SwitchesThe following table lists each command-line switch and its description:
Switch Description ---------------------------------------------------------------------- /backup Backs up the registry and related files without displaying any prompts. /restore Displays a list of available backup files, sorted by the date and time the backup was created. "/comment=<text>" Enables you to add a descriptive comment to the registry backup. /fix Repairs any damaged portions of the registry, and optimizes it by rebuilding it without unused space. /autoscan Automatically scans the registry and backs it up without displaying any prompts if there is no backup for that date. /scanonly Scans the registry and displays a message if any errors are found. This switch does not back up the registry. filename Scans the registry file specified and displays a message indicating whether or not any errors were found. This switch does not back up the registry. /opt The /opt command-line switch causes the Registry Checker tool to optimize the registry by removing unused space.
The Registry Scan Results dialog box appears only when you use theScanregw.exe command without any command-line switches. If no registryerrors are found when you run Scanregw.exe, you are prompted to create abackup copy of your current registry.
The "/comment=<text>" switch can be used by itself or with the /backupswitch. For example, you can type either of the following lines at acommand prompt:
scanreg.exe "/comment=this is a registry backup"
scanreg.exe /backup "/comment=this is a registry backup"
The first command line starts the Registry Checker tool graphical userinterface (GUI) and prompts you to create a registry backup. The secondcommand line creates a backup copy of your registry and adds your commentwithout starting the Registry Checker tool GUI.
For additional information about the Registry Checker tool, please see thefollowing articles in the Microsoft Knowledge Base:
Article ID: 184023 - Last Review: 06/22/2014 18:54:00 - Revision: 2.0
- kbinfo KB184023