I've been using the following WMI query to check how many IIS sites are currently running on my Windows 2008 webservers:
SELECT ApplicationsRunning FROM Win32_PerfRawData_ASPNET4030319_ASPNETv4030319
After replacing these webservers with 2012 equivalents, this query always returns 0, even though my sites run ASP.Net 4.
Does anyone know why this happens, and how to fix it ?