Skip to content

Instantly share code, notes, and snippets.

@StefanJanssen95
StefanJanssen95 / check-iis-version.ps1
Created May 25, 2021 13:35 — forked from ScriptingPro/check-iis-version.ps1
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}}