Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I wish to find the version of IIS using a power-shell(or WMI) query. The following is the query which I have used.
XML
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.

Thanks & Regards
Sebastian
Posted
Updated 27-May-13 19:35pm
v3
Comments
Sebastian T Xavier 28-May-13 1:27am    
Someone down voted it & It may get deleted soon !!!. I don't know why. He could have post a reason to mark it as a bad question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900