Unable to retrieve AntiVirus details from Windows Server 2016 using WMI

We are using WMI services for retrieving AntiVirus details (name of AntiVirus and installed status) from Windows. And the code works fine for Windows 7, 8.1, 10, but it failed on Windows Server 2016 OS. So kindly help us to solve this problem.Here is the code we are using: void GetAntiVirusDetails() …

Windows 2008 VPS via Unable to retrieve AntiVirus details from Windows Server 2016 using WMI.