If you are in this position you can start your system in safe mode to access the command prompt, from where you can run System Restore with a simple command.
Open the command prompt in any of the following ways:
press the two keys Win + R together and in the box of RUN that will open type cmd.exe and press Enter.
When you open the utility type the following command and then press Enter:
In some versions of Windows, you do not need to add the .EXE suffix at the end of the command.
The System Restore Wizard will open immediately. Follow the on-screen instructions to complete System Restore.
Be careful with fake rstrui.exe files
As already mentioned, the System Restore tool runs from the executable rstrui.exe. This tool is in the folder:
C: \Windows\ System32 \ rstrui.exe
If you find another file on your computer called rstrui.exe, it is very likely that it is a malicious program that is trying to deceive you.
Do not use any other program that is supposed to be System Restore. Still looks like the real exe, but you will probably be asked to pay to restore your files or suggest you buy something else.
Also mention that its fake applications System Restore may use slight spelling mistakes to make you think they are true. For example you might notice some replacement of i with a lowercase L, so the name becomes rstrul.exe, or you may notice the addition or subtraction of a letter (eg the restructi.exe file or the rstri.exe file).