How to do a quick check of IIS version

Just a brief note on checking IIS version installed on the server. In case you doing a lot of support or scripting you should appreciate CLI way of doing this which doesn’t imply giving extensive instructions of getting the same information from GUI, which no matter how detailed will always be more error prone.

So to get IIS version you may just execute the following in PS window:

[System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:SystemRoot\system32\inetsrv\InetMgr.exe").ProductVersion

Sample output from Windows Server 2016 TP5 (it returns 10.0.14300.1000):

Windows Server 2016 TP5 IIS version

Note: If this command doesn’t work but you pretty sure that IIS is installed on your box, then most likely┬áIIS Management Console was not installed, and modern Windows administrator/IT pro should be able to quickly check this by issuing this command (see related question on stackowerflow.com):

Get-WindowsFeature *Web*

And if it is missing just quickly add this via the following command:

Add-WindowsFeature Web-Mgmt-Console

Please follow and like us:
0

Leave a Reply

Your email address will not be published. Required fields are marked *