If Windows Defender detects a virus on your system, it will take the following steps to protect your system from further infection.
First, Windows Defender will quarantine the virus by isolating it in a separate area of your hard drive. This process helps to prevent the virus from infecting other parts of your system.
Second, Windows Defender will bring up a notification telling you that it found a virus and that it is being quarantined. At this point, you can choose to do nothing, or you can open up the notification and select the option to delete the virus. If you select the “delete” option, Windows Defender will delete the virus and any associated files.
Third, once the virus has been deleted, Windows Defender will launch a full scan of your system and check for any remaining viruses or malicious software that may have been installed during the process of installing the virus.
Fourth, if the scan finds any suspicious files, Windows Defender will then ask you if you want to remove the malicious files. You can either choose to delete the files or leave them and let Windows Defender monitor them. If you decide to delete them, Windows Defender will securely remove the files from your system.
Finally, Windows Defender will create a report detailing what it has done and any action it has taken. This report will also provide guidance on how to best protect your computer from future attacks, such as updating your anti-virus software or applying patches to keep your system up to date.
To ensure your system is as secure as possible, it is important to regularly update your anti-virus software, as well as scan your system with Windows Defender on a regular basis. Keeping your system secure and up to date, is the best way to protect yourself from new viruses and malware.