How to test if your anti-virus is working on Windows [Guide]

computer_securityIf your system were to somehow get infected with malware, one of the first things that malicious code does is to try and disable the anti-virus scanner. It may also attempt to modify the HOSTS file, so as to tamper with the anti-virus definition update process. Most popular modern-day anti-virus programs offer real-time protection against potentially malicious software and will throw up a prompt warning you of detection and recommended actions if you download an infected file.

But what if the system is already infected and your anti-virus rendered ineffective — and you don’t know about it? In that case, you would never know what’s getting into your system or the fact that you are already infected, would you? Here’s a quick tip that will help you check whether your anti-virus is working or not.

Please take note, this is a simple test that does not evaluate the effectiveness of your anti-virus — it evaluates if your anti-virus is working and is not disabled. In other words, this test won’t tell you how well your anti-virus blocks malicious files; it tells you if your anti-virus has not been disabled.

How To Test If Your Anti-Virus Is Working on Windows XP, Vista, 7, 8, and 8.1

To test if your anti-virus is working, do the following:

  • Launch Notepad on your computer
  • Copy and paste the following line into the Notepad file:


  • Save the file with a .com extension, e.g. You will need to select All Files from Types at the bottom of the save dialog in Notepad in order to save the file as a .com file instead of a .txt file.
  • If the real-time protection mode of your anti-virus program is working properly, it should automatically trigger an alert, like the following:

Test anti virus

  • You can also manually scan the file with your anti-virus on-demand scanning feature, to see if that is working.
  • If you are not prompted by either live-protection or on-demand scanning, that means your anti-virus is probably not working; it may have been disabled and is something you need to look into further.

For those that are curious, the file that you created earlier is called an EICAR test file, where EICAR stands for European Institute for Computer Antivirus Research. EICAR is a non-malicious string of code that most antivirus programs include in their signature definitions, thus by creating it we can test if anti-virus is enabled or disabled.


If you don’t see the anti-virus alert, it could mean that your anti-virus has either been turned off or is compromised somehow. Either way, you should play it safe, update your virus definitions and run a full system scan to locate potential threats, if any. You may need to take other measures, too, like using an anti-virus boot disc to clean out your computer.

Related Posts