Skip to content

What is RESTORE Windows command?

The Windows restore command allows users to revert their system to a previous state, fixing issues and undoing changes easily.

RESTORE Syntax:

Terminal window
restore [option] [parameter]

RESTORE Options:

OptionDescription
-fForce restore without confirmation
-vVerbose mode, display detailed information during restore
-rRestore to a specific directory or location

Parameters:

ParameterDescription
fileSpecifies the file to be restored
directorySpecifies the directory to restore the file to
dateSpecifies a specific date or timestamp to restore from

RESTORE Command Usage Examples:

Restore the system to a previous restore point

Terminal window
rstrui.exe

Opens the System Restore tool to restore the system to a previous restore point.

Restore the system using a specific restore point

Terminal window
rstrui.exe /restore

Directly opens the System Restore tool interface to choose a specific restore point for system restoration.

Check if System Restore is enabled on the system

Terminal window
vssadmin list shadows

Lists all of the available shadow copies, indicating whether System Restore is enabled on the system.

View the available disks with shadow copies for System Restore

Terminal window
vssadmin list volumes

Displays a list of all volumes along with their shadow copy information to identify disks eligible for System Restore.

Create a new system restore point

Terminal window
wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "MyRestorePoint", 100, 7

Allows the creation of a new restore point named “MyRestorePoint” with a description and importance level specified.

How do I use restore in Windows?

To use the restore command in CMD, execute the following command:

Terminal window
restore --file "C:\backup\file.txt" --target "C:\destination"

Can I restore multiple files at once with the restore command?

Yes, you can restore multiple files at once using wildcards. Here’s an example:

Terminal window
restore --file "C:\backup\*.txt" --target "C:\destination"

How do I restore a folder in Windows using CMD?

To restore a folder with all its contents, you can use the following command:

Terminal window
restore --file "C:\backup\folder\" --target "C:\destination"

Is it possible to restore deleted files with the restore command?

No, the restore command in Windows CMD does not have the capability to recover deleted files. It is primarily used for restoring backed-up files or directories.

How can I view a list of available options for the restore command?

You can view a list of available options for the restore command by using the help flag. Here’s how you can do it:

Terminal window
restore --help

Can I specify a specific date or time for the restore operation?

Yes, you can specify a specific date or time for the restore operation using timestamps. Here’s an example:

Terminal window
restore --file "C:\backup\file.txt" --target "C:\destination" --timestamp "2022-01-01 12:00:00"

Does the restore command in Windows CMD support incremental backups?

Yes, the restore command can support incremental backups by specifying the appropriate options during the restore operation.

How can I verify the integrity of the restored files using CMD?

To verify the integrity of the restored files, you can use the verify option in the restore command. Here’s an example:

Terminal window
restore --file "C:\backup\file.txt" --target "C:\destination" --verify

Applications of the RESTORE Command

  • Revert system settings to a previous state
  • Undo system changes made by recent software installations
  • Recover files that were accidentally deleted or modified
  • Fix system errors or issues by restoring a stable configuration
  • Roll back changes caused by malware or viruses
  • Restore system functionality after a system crash or failure