答案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
然后服务器管理器:管理\删除角色和功能