How to check Microsoft IIS webserver version

If you have to tune some weirdly behaviour Microsoft IIS (Internet Information Services) webserver, the first thing to do is to collect information about the system you're dealing with – get version of installed Windows and check what kind of IIS version is running on the Windows server?

To get the version of installed Windows on the system you just logged in, the quickest way I use is:
 

Start -> My Computer (right mouse button) Properties

check-windows-server-version-screenshot-windows-2003-r2

Run regedit from cmd.exe and go and check value of registry value:

 

HKEY_LOCAL_MACHINESOFTWAREMicrosoftInetStpVersionString


check-iis-webserver-version-with-windows-registry-screenshot

As you can see in screenshot in this particular case it is IIS version 6.0.

An alternative way to check the IIS version in some cases (if IIS version return is not disabled) is to telnet to webserver:

telnet your-webserver 80
 


Once connected Send:

HEAD / HTTP/1.0


Also on some Windows versions it is possible to check IIS webserver version from Internet Information Services Management Cosnole:

To check IIS version from IIS Manager:

Start (button) -> Control Panel -> Administrative Tools -> "Internet Information Services" IIS Manager

From IIS Manager go to:

Help -> About Microsoft Management Console


Here is a list with most common IIS version output you will get depending on the version of Windows server:

 

Windows NT 3.51 1.0
Windows NT 4 2.0-4.0
Windows Server 2000 5.0
Windows XP Professional 5.1
Windows Server 2003 6.0
Windows Vista 7.0
Windows Server 2008 7.0
Windows Server 2008 R2 7.5
Windows 7 7.5
Windows Server 2012 8.0
Windows 8 8.0
Windows Server 2012 R2 8.5
Windows 8.1 8.5

If you have only an upload FTP access to a Folder served by IIS Webserver – i.e. no access to the Win server running IIS, you can also grasp the IIS version with following .ASP code:
 

<%
response.write(Request.ServerVariables("SERVER_SOFTWARE"))
%>


Save the file as anyfile.asp somewhere in IIS docroot and invoke it in browser.

Share this on:

Download PDFDownload PDF

Tags: , , , , , , , , , , , , , , ,

3 Responses to “How to check Microsoft IIS webserver version”

  1. hip0 says:
    Google Chrome 39.0.2171.95 Google Chrome 39.0.2171.95 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

    Its posibble to get the IIS version also from command line using powershell with Powershell query:
     

    Get-WmiObject -namespace "root\microsoftiisv2" -query "select MajorIIsVersionNumber from IISWebInfo"

    or

    get-itemproperty HKLM:\SOFTWARE\Microsoft\InetStp\ | select setupstring,versionstring

    Getting remotely the version of IIS via powershell is possible also by using following PS script:

     

    $pwd = convertto-securestring "yourstrongpasswordhere" -asplaintext -force
    $cred=new-object -typename System.Management.Automation.PSCredential -argumentlist "machinenamehere\adminusernamehere",$pwd

    $iisversion= Invoke-Command -ComputerName $machineName -ScriptBlock {

    $(get-itemproperty HKLM:\SOFTWARE\Microsoft\InetStp\).setupstring

    } -Credential $cred

    Write-Host iisversion = $iisversion
    If($iisversion -like '*IIS 6*'){
    Write-Host This server uses IIS6
    }

    If($iisversion -like '*IIS 7*'){
    Write-Host This server uses IIS7
    }

    View CommentView Comment
  2. hip0 says:
    Google Chrome 39.0.2171.95 Google Chrome 39.0.2171.95 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

    Alternative method to get IIS with VBScript is with following script:
     

    strComputer = "."
    Set objWMIService = GetObject _
    ("winmgmts:{authenticationLevel=pktPrivacy}\\" _
    & strComputer & "\root\microsoftiisv2")

    Set colItems = objWMIService.ExecQuery("Select * from IIsWebInfo")

    For Each objItem in colItems
    Wscript.Echo "Major IIS Version Number: " & _
    objItem.MajorIIsVersionNumber
    Wscript.Echo "Minor IIS Version Number: " & _
    objItem.MinorIIsVersionNumber
    Wscript.Echo "Name: " & objItem.Name
    Next

    View CommentView Comment
  3. Opera 8.50 8.50 Opera 8.50 8.50 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.50

    "tłumaczenia"

    View CommentView Comment

Leave a Reply

CommentLuv badge