Reply to thread

[USER=97516]@Vasilich[/USER]

I think the reason might be described a little in the remarks:

[collapse]

Remarks

To detect whether a server role or feature is installed, use the Server Feature WMI provider.


Subsequent releases of Windows will map the product types it supports to the set of product types supported by each supported previous release of Windows, back to version 6.0.0.0. Therefore, an application that does an equality test for any of these values will continue to work on future releases, even when new product types are added.


PRODUCT_*_SERVER_CORE values are not returned in Windows Server 2012. For example, the base server edition, Server Datacenter, is used to build the two different installation options: "full server" and "core server". With Windows Server 2012, GetProductInfo will return PRODUCT_DATACENTER regardless of the option used during product installation.


The following table indicates the product types that were introduced in 6.1.0.0, and what they will map to if GetProductInfo is called with version 6.0.0.0 on a 6.1.0.0 system.[/collapse]


Top Bottom