How to perform a system restore from the command prompt on Windows 10

In a related article, we have explained how to perform system restore in Windows 10. However, this assumes that you are able to enter into Safe mode. This might not be the case if your computer is affected by a virus or ransomware. Fortunately, even in these cases, it is possible to perform a system restore – provided you have restore points saved in your system.

Here is how you can perform a system restore from the command prompt:

  1. Restart your computer while holding down Shift. This will take you to a screen where you can choose from different options. Select Troubleshoot.
choosing Troubleshoot
  1. Choose Advanced options > Startup Settings, then press Restart.
choosing advanced options
choosing Start-up settings
restarting computer
  1. In the Startup settings menu that comes up, select option 6: Enable Safe Mode with Command Prompt.
enabling safe mode with command prompt
  1. Type “rstrui.exe” and hit Enter. This will take you to the System Restore tool.
rstrui.exe command
  1. Choose your restore point. If you have several, you can choose between Use recommended restore point and Choose restore point. Then press Next.
choosing restore point
  1. Follow the on-screen instructions to perform the restore.


Even if you have a virus or ransomware on your computer, this tutorial allows you to restore your system to an earlier version. We hope it was helpful to you!

Leave a Comment