Sometimes this method of recovery works but other times it may not since System Restore was not designed to be a virus or malware removal tool
. Whether it will be successful depends on what type of infection you are dealing with, what damage the malware has already caused, whether it disabled System Restore and if not, and what is restored
during the process.
This is what mvps.org has to say:Can I use System Restore to remove virus or malware infection?
NO. System Restore was not designed to be a virus or spyware removal tool and should not be depended on.
Generally it's better to leave System Restore alone until the machine is clean and stable. However, in some cases, using System Restore may return some system stability if you are having problems running disinfection tools or booting up. If you are able to successfully use System Restore to return to a previous state there is no guarantee
your computer will not still be infected. As such, you should immediately perform scans with your anti-virus and anti-malware tools afterwards, then monitor your system for any signs of infection.