Search code examples
batch-filecmdantivirus

is there a command to check if there was any antivirus installed?


I'm looking for a command to list what antivirus(s) are installed on Windows. If there is currently none installed, I would like it to indicate this.

Thanks a lot


Solution

  • Try using the wmic command with a findstr command. Should work on Windows Vista and later

    wmic /node:localhost /namespace:\\root\SecurityCenter2 path AntiVirusProduct Get DisplayName | findstr /V /B /C:displayName || echo No Antivirus installed

    Reference