Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StefanJanssen95/71394861ef20139e5c1dae5460cddb7c to your computer and use it in GitHub Desktop.
Save StefanJanssen95/71394861ef20139e5c1dae5460cddb7c to your computer and use it in GitHub Desktop.
Check IIS Version with Powershell
<#
one-liner to quickly determine IIS version information from a Powershell prompt
#>
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\InetStp' | select InstallPath, VersionString, @{n="ProductVersion";e={(Get-ItemProperty ($_.InstallPath + "\w3wp.exe")).VersionInfo.ProductVersion}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment