如何在 Windows Server 2016 上卸载 IIS 10?

如何在 Windows Server 2016 上卸载 IIS 10?

我无法禁用/删除 IIS 组件及其子组件。

在此处输入图片描述

如何在 Windows Server 2016 上卸载 IIS 10?

答案1

以管理员身份打开PowerShell,运行命令

Remove-WindowsFeature Web-Default-Doc
Remove-WindowsFeature Web-Dir-Browsing
Remove-WindowsFeature Web-Http-Errors
Remove-WindowsFeature Web-Static-Content
Remove-WindowsFeature Web-Http-Logging
Remove-WindowsFeature Web-Request-Monitor
Remove-WindowsFeature Web-Stat-Compression
Remove-WindowsFeature Web-Filtering
Remove-WindowsFeature Web-Windows-Auth
Remove-WindowsFeature Web-Net-Ext45
Remove-WindowsFeature Web-Asp-Net45
Remove-WindowsFeature Web-ISAPI-Ext
Remove-WindowsFeature Web-ISAPI-Filter
Remove-WindowsFeature Web-Mgmt-Console
Remove-WindowsFeature Web-Metabase

然后服务器管理器:管理\删除角色和功能

答案2

您无法删除它们,因为您打开了“添加角色和功能”向导。您需要打开“删除角色和功能”向导...

在此处输入图片描述

相关内容