I wish to find the version of IIS using a powershell (or WMI) query.
The following is the query which I have used.
Get-WmiObject -namespace "root\microsoftiisv2" -query "select MajorIIsVersionNumber from IISWebInfo"
I tested this query using powershell console in a 'Windows 8' PC with 'IIS 8'. But the result is 7 , where the expected version Number is 8.
Can someone help me to solve this issue?.