答案是使用IIS管理器或註冊表查看最準確。打開IIS管理器,在主頁面底部或“幫助”→“關於”中查看版本;或通過註冊表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp,讀取MajorVersion和MinorVersion值確定版本;PowerShell命令Get-WebConfigurationProperty可獲取versionString;也可根據Windows版本間接判斷,如Win10對應IIS 10.0。
To check the current version of IIS (Internet Information Services) on a Windows system, you can use one of the following methods:
Method 1: Using IIS Manager Open IIS Manager: Press Windows R , type inetmgr , and press Enter.
In the IIS Manager window, look at the right-hand pane under "Server" or click on the server name in the Connections panel. The version number is usually displayed at the bottom of the main page or in the Overview section.
Alternatively, go to Help > About Internet Information Services to see the exact version and build number.
Method 2: Check via Registry Editor Press Windows R , type regedit , and press Enter.
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
Look for the MajorVersion and MinorVersion values. For example:
MajorVersion = 10, MinorVersion = 0 → IIS 10.0 MajorVersion = 8, MinorVersion = 5 → IIS 8.5
You can also check the SetupString value for a human-readable version label.
Method 3: Using Command Line (WMIC) Open Command Prompt as Administrator.
Run this command:
wmic baseboard get product,version
That's not correct. Use this instead:
appcmd is not always available. Better alternative:
Run:
powershell Get-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -name versionString
This PowerShell command will return the IIS version if IIS is installed and properly configured.
Method 4: Check Windows Version (Indirect Method) IIS version typically corresponds to the Windows version. For example:
Windows 10 / Windows Server 2019 → IIS 10.0 Windows 8.1 → IIS 8.5 Windows Server 2012 R2 → IIS 8.5 Windows 7 → IIS 7.5
Check your OS version via Settings > System > About or run winver to get a quick overview.
Basically, using IIS Manager or checking the registry gives the most accurate result. PowerShell is reliable if Web Administration cmdlets are available. Matching the OS version works for estimation.
以上是如何查看當前IIS版本?的詳細內容。更多資訊請關注PHP中文網其他相關文章!