Getting server roles and features using WMI on Windows Server 2012 and 2012R2 using the MSFT_ServerManagerDeploymentTasks method GetServerComponentsAsync
I've recently been trying to understand what's happened to the Win32_ServerFeature which Microsoft appear to have ditched in Windows Server 2012. What's happened seems indicative of Microsoft's current attitude towards half finished products and documentation so I'm going to try and help clarify what has happened. Win32_ServerFeature is still available on Windows Server 2012 and R2 however new server features that have been added to the operating system will not appear in the results. The replacement is the GetServerComponentsAsync() method of the MSFT_ServerManagerDeploymentTasks class http://msdn.microsoft.com/en-us/library/hh872466(v=vs.85).aspx Unfortunately Microsoft haven't actually bothered to document any of these methods. More scarily they seem to have written incorrect documentation stating that parameters are Strings for example, when they clearly aren't. I've put together a quick WMI call to get the Windows se