I've got a box running Win2k3 and some directions from Microsoft KB about SSL certificates, for IIS 5.0 and 6.0. How can I tell which version of IIS is currently installed?
Windows XP has IIS 5.1 installed, so use the IIS 5.0 procedure. See this article for an overview of IIS 5.1:
IIS 5.1 is a feature only to be found on Microsoft's XP Pro operating system. It is not installable (reliably) on XP Home. Additionally, there are no plans to update IIS 5.0 on Windows 2000 to IIS 5.1.
IIS 5.1 is basically the same engine as IIS 5.0 but since XP is a client operating system, it has the built in limits that are customary for Microsoft’s client operating systems—such as connection limits and only one Web site. Even though based on IIS 5, there are significant differences from IIS 5.0 that you should know about.
You could also open a page in the browser which runs this simple asp Script:
<% response.write(Request.ServerVariables("SERVER_SOFTWARE")) %>
As a side note: it is interesting that IIS (beginning with Windows Server 2000/version 5.0) can't be upgraded without upgrading the operating system. Every Windows version has it's own IIS version:
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
You should be able to determine the IIS version number from the following registry value: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\VersionString
This shows "Version 6.0" on my local machine.
(You can find details on how to open regedit to view this from http://www.wikihow.com/Open-Regedit)
If you have
grep installed, e.g. through Cygwin, or from another machine running OS X or Linux, you can use the power of command line tools and avoid knowing where exactly to click in which situation:
$ curl --silent -I http://microsoft.com/ |grep Server Server: Microsoft-IIS/8.5
Note there is no requirement to be on the server itself.
Just as a fun data point:
From 32-bit land:
Windows XP ships with IIS 5.1.
Windows Server 2003 with IIS 6.0.
But the x64 edition of Windows XP is based on the Windows Server 2003 SP1 codebase, and the version of IIS included in Windows XP Professional X64 Edition is IIS 6.0.
Crazy stuff, I know.
Here, the updated version table to Windows 10 and Windows Server 2016:
IIS 1.0 Windows NT 3.51 IIS 2.0 Windows NT 4.0 IIS 3.0 Windows NT 4.0 SP3 IIS 4.0 Windows NT 4.0 Option Pack IIS 5.0 Windows 2000 IIS 5.1 Windows XP Professional x32 IIS 6.0 Windows Server 2003 IIS 6.0 Windows Server 2003 R2 IIS 6.0 Windows XP Professional x64 IIS 7.0 Windows Server 2008 / Windows Vista IIS 7.5 Windows Server 2008 R2 / Windows 7 IIS 8.0 Windows Server 2012 / Windows 8 IIS 8.5 Windows Server 2012 R2 / Windows 8.1 IIS 10.0 Windows Server 2016 / Windows 10
And other methods would be:
Properties on the file: InetMgr.exe via GUI, or via PowerShell:
If you have no access what so ever to the back end of a machine you can try using NetCraft such as http://toolbar.netcraft.com/site_report?url=http://www.starbucks.com
There are enough little finger prints on the headers the machine gives off, that they can usually identify the signature of the machine, unless someone alters them on purpose.
You can also run this PowerShell script:
$w3wpPath = $Env:WinDir + "\System32\inetsrv\w3wp.exe" $productProperty = Get-ItemProperty -Path $w3wpPath Write-Host $productProperty.VersionInfo.ProductVersion