How to do a system restore using command prompt?

How to perform a System Restore using Command Prompt? (ransomware or virus is blocking Safe Mode)

The System Restore function restores operating system files to an earlier point in time. System Restore is useful when malicious software infiltrates a computer and damages the system files. Moreover, this function important when dealing with variants of ransomware infections that block computer screens. This tutorial describes the process of performing a System Restore using Command Prompt. In some cases, especially when dealing with ransomware infections, performing a System Restore is a complicated task, since modern fake antivirus programs and ransomware infections are capable of blocking an operating system's Safe Mode and Safe Mode with networking. This leaves one solution: performing a System Restore using Command Prompt.

To perform a System Restore using Command Prompt:

1. Start your computer in Safe Mode with Command Prompt. During the computer start process, press F8 key on your keyboard multiple times until the Windows Advanced Options menu appears, then select Safe mode with Command Prompt from the list and press ENTER.

Boot your computer in Safe Mode with Command Prompt

2. When Command Prompt Mode loads, enter the following line: cd restore and press ENTER.

system restore using command prompt type cd restore

3. Next, type this line: rstrui.exe and press ENTER.

system restore using command prompt rstrui.exe

4. In the opened window, click 'Next'.

restore system files and settings

5. Select one of the available restore points and click 'Next' (this will restore your computer system to an earlier time and date).

select a restore point

6. In the opened window, click 'Yes'.

run system restore

7. If you are dealing with a ransomware infection, download and scan your PC with recommended malware removal software after restoring your computer to a previous date.

Note that in some cases, System Restore does not eliminate security infections - malicious programs can hide within restore points. After performing a System Restore, scan your computer with legitimate anti-spyware software.

Emma Briney

I have the same error. Did you ever get an answer?

Jean Montgomery

Was wondering if the sh_remover can be run on command line prompt. I only have access to it. Have been infected with ransomware and when I did a restore now I just get a black screen. I can remote into the machine, but only have command line.

Shelby Green

I'm getting the message "not enough memory resources are available to process this command" at the top of the dialogue box. After typing in rstrui.exe., I get a system restore dialogue box telling me that to use that command I must specify which Windows installation to restore. But there's never the option to select an operating system when I restart. What's my next move?

Scott Brannan

I also have no restore points .where do I get a rescue disk ,and my laptop doubt have a place to put a disk

Mercy Resiato

My computer is saying the audio device is not running....and some services like Bluetooth....WiFi are not


Same here. I just lost all my data and have been trying to recover it eversince. Did you have any luck?


I'm having the same issue, it sucks. Can anyone help?

Ej Berin

Same problem with me? Any solutions?

Kylie Short Cake Dowers

This evil April 2018 Windows 10 update has really screwed my computer nothing works to restore it. I ever tried the steps here but after entering the final command prompt it tells me I need to specify which to restore. I tells me to restart, go on the system I want to restore and do that but I can't get that option. I have tried a multitude of things but nothing is working. I'm devastated and don't want to loose everything


I-ve updated to 1083 and I got desktop can is not avaible its black screen with onlz recycle bin


Thank you so much


Thanks. Your are the best

Nik Faris

okay let me help you

Jason Rivest

3. Next, type this line: rstrui.exe and press ENTER. works perfect ..Thanks

kaleb is 12

install the software on a usb and boot via uefi

Prince Airamen Alucad

Same problem, have you fixed this already?

Hyperactive Insomniac

My laptop was freezing during start up. Couldn't get recovery to work in safe mode (opened settings, clicked backup and recovery... Nada...) Followed these steps and it's currently restoring to the last automatic backup. (So glad it does an automatic one, I never remember to do those.. :sweatdrop: :oops: )

James Orial

Anyone out there who can help me?

Kristina Lewis

I need someone to help i have tried everything to get back into my computer my ex changed my administrative password and I cannot get into anything he has me locked out and even has child control on or parental control somebody help me bypass this so I can get back into my computer plz

Yuki Kagami

Thank you so much

Balozi Temu

It is working but when it reach the point to select partition to restore the next button become inactive,,,

Please any one can help to fix the problem


I install dual boot but it show an error invalid arch independent magic
grub rescue>
I tried ls command still same error

Ineza Iwacu

it is working normal


Heather, did you ever get this figured out? I am having this EXACT issue with my laptop currently and am hoping I can find a remedy.

francis Bixx

I dit all of the above and it works, But i want to put in my own date one previous than given in the system restore window. reason being i know a date that works. there must be an other command to get to the window in which you can put your own date??

Katie Hassell

the freaking ad keeps kicking me to the bottom of the page!

nanayawgyasi donkor

what computer or windows are you using


I can't even do a restore in safe mode command prompt. My computer reboots and i get a message saying stop code:CRITICAL PROCESS DIED

Petar Delaš

Use DOS from CD

Elrobertosuperio Gaming

just restart the pc and dont press any thing on your pc and it will repair your hard drive and your pc will start normally

Harsha Vardhana

u r the man.bless u ... bless u bless u ...bless u..bless u...bless u


thanks , easy and working ...... thanks thanks thanks...........................................

About the author:

Tomas Meskauskas

I am passionate about computer security and technology. I have an experience of 10 years working in various companies related to computer technical issue solving and Internet security. I have been working as an editor for since 2010. Follow me on Twitter to stay informed about the latest tech news or online security threats. Contact Tomas Meskauskas.

Our guides are free. However, if you want to support us you can send us a donation.