powershell iis version get / check
1 |
get-itemproperty HKLM:\SOFTWARE\Microsoft\InetStp\ | select setupstring,versionstring |
windows 2008 R2
1 2 3 4 5 |
PS C:\Users\Administrator> get-itemproperty HKLM:\SOFTWARE\Microsoft\InetStp\ | select setupstring,versionstring SetupString VersionString ----------- ------------- IIS 7.5 Version 7.5 |
WINDOWS 2012
1 2 3 4 5 6 7 8 9 10 11 |
Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved. PS C:\Users\Administrator> get-itemproperty HKLM:\SOFTWARE\Microsoft\InetStp\ | select setupstring,versionstring SetupString VersionString ----------- ------------- IIS 8.5 Version 8.5 PS C:\Users\Administrator> |
WINDOWS 2016
1 2 3 4 5 6 7 8 |
PS C:\Users\Administrator> get-itemproperty HKLM:\SOFTWARE\Microsoft\InetStp\ | select setupstring,versionstring SetupString VersionString ----------- ------------- IIS 10.0 Version 10.0 PS C:\Users\Administrator> |