我如何知道安装了哪个版本的 IIS?

jld*_*ger 110 windows iis

我有一个运行 Win2k3 的盒子,以及 Microsoft KB 关于 IIS 5.0 和 6.0 的 SSL 证书的一些说明。如何判断当前安装的是哪个版本的 IIS?

小智 80

作为更一般的答案,不是专门针对您的问题,Microsoft 有一篇支持文章,其中列出了所有旧版本和提供每个版本的操作系统。

IIS version   Built-in  
5.0           Windows 2000
5.1           Windows XP Pro
6.0           Windows Server 2003
7.0           Windows Vista and Windows Server 2008
7.5           Windows 7 and Windows Server 2008 R2
8.0           Windows 8 and Windows Server 2012
Run Code Online (Sandbox Code Playgroud)

当前版本在维基百科上

8.5           Windows 8.1 and Windows Server 2012 R2
10.0 v1607    Windows Server 2016 and Windows 10.*
10.0 v1709    Windows Server 2016 v1709 and Windows 10.*
10.0 v1809    Windows Server 2019  and Windows 10.* October
Run Code Online (Sandbox Code Playgroud)

  • 不幸的是,Microsoft 尚未更新该页面以包含 IIS 7.5。这是包含它的替代参考:http://en.wikipedia.org/wiki/Internet_Information_Services (18认同)
  • 是的,但现在 MS 文章不包括 IIS 8.5 或 IIS 10(后者包含在 Windows Server 2016 和 Windows 10 中)。总是落后一两步... (9认同)

Dav*_*tas 77

当您打开 IIS 管理器时,您可以单击Help -> About查看版本。

IIS 管理器中关于框的 IIS 版本

  • 很好的答案。但是,很容易错过真正的 IIS 版本,而只能看到实际 IIS 管理器的版本号。例如,在我的 Windows 8.1 上,当我打开“帮助”>“关于”框时,很容易将 IIS 的版本误读为 6.2。所以我添加了一个屏幕截图来说明真​​正的版本号在哪里。 (17认同)

squ*_*man 54

你可以查看%SYSTEMROOT%\system32\inetsrv\inetinfo.exe。右键单击并获取属性,单击版本选项卡。

您还可以查看 HTTP 响应标头

  1. 远程登录 mywebserver 80
  2. 输入 HEAD / HTTP/1.0 [输入][输入]
  3. 查看以 Server 开头的行:

  • 在 Windows 2012 R2 上,%SYSTEMROOT%\system32\inetsrv 中没有 inetinfo.exe。但是 telnet 方法有效。 (5认同)
  • 在 XP Pro 上??从未见过... Mines 说 5.1。 (2认同)

spl*_*tne 18

Windows XP 安装了 IIS 5.1,因此请使用 IIS 5.0 过程。有关 IIS 5.1 的概述,请参阅这篇文章:

看看 XP Pro 中的 IIS 5.1 - 与 IIS 5 有何不同?

IIS 5.1 是一项仅在 Microsoft 的 XP Pro 操作系统上才能找到的功能。它不能(可靠地)安装在 XP Home 上。此外,没有计划将 Windows 2000 上的 IIS 5.0 更新为 IIS 5.1。

IIS 5.1 与 IIS 5.0 的引擎基本相同,但由于 XP 是客户端操作系统,因此它具有 Microsoft 客户端操作系统惯用的内置限制,例如连接限制和只有一个网站。即使基于 IIS 5,您也应该了解与 IIS 5.0 的显着差异。

您还可以在浏览器中打开一个页面,该页面运行这个简单的 asp 脚本:

<% 
    response.write(Request.ServerVariables("SERVER_SOFTWARE")) 
%>
Run Code Online (Sandbox Code Playgroud)

附带说明:有趣的是,不升级操作系统就无法升级 IIS(从 Windows Server 2000/版本 5.0 开始)。每个 Windows 版本都有自己的 IIS 版本:

视窗 NT 3.51 1.0
视窗 NT 4 2.0-4.0
视窗服务器 2000 5.0
视窗 XP 专业版 5.1
视窗服务器 2003 6.0
视窗 Vista 7.0
视窗服务器 2008 7.0
Windows Server 2008 R2 7.5
视窗 7 7.5
视窗服务器 2012 8.0
视窗 8 8.0
Windows Server 2012 R2 8.5
视窗 8.1 8.5
视窗服务器 2019 10.0


Jon*_*ams 7

您应该能够从以下注册表值确定 IIS 版本号:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\VersionString

这在我的本地机器上显示“版本 6.0”。

reg.exe query HKLM\SOFTWARE\Microsoft\InetStp /v VersionString
Run Code Online (Sandbox Code Playgroud)


小智 5

这里是Windows 10和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 / 2019 / Windows 10
Run Code Online (Sandbox Code Playgroud)

其他方法是:

文件属性:InetMgr.exe 通过 GUI 或通过 PowerShell:

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

摘自:http://www.sysadmit.com/2017/05/windows-iis-como-saber-la-version-instalada.html