Windows 10 virus and threat protection

broken image
broken image
broken image

I want to be able through code to display the Windows Security Center Virus and Threat Protections area if the user has antivirus protection turned off. foreach (ManagementObject virusChecker in wmiData) ManagementObjectCollection instances = searcher.Get() String wmipathstr = + Environment.MachineName + searcher = new ManagementObjectSearcher(wmipathstr, 'SELECT * FROM AntivirusProduct') \root\Securit圜enter2 does not exist on server editions. I must take that into account in a future version. Note: Windows 10 and Windows Server use different methods. I can detect through code whether or not Antivirus is installed and/or running, through code similar to: public static bool IsAntivirusInstalled()