从Win2008 R2中删除IIS – 副作用?

这可能是一个过于宽泛的问题,但是在使用search引擎时我找不到一个好的答案…

我有几台服务器将通过不是 IIS的应用程序提供基于Web的服务。 虽然我可以禁用IIS,但是我想知道是否可以(应该?)将其删除,以便从安全和维护angular度考虑更less的组件。

是否有从Windows 2008 R2服务器中删除IIS的pipe理或操作副作用?

如果我这样做,我将失去使用标准的Microsoft工具来pipe理服务器的能力吗?

如果你不使用IIS,你应该删除它,出于你提到的原因 – 维护和安全。

删除IIS的唯一影响是无法使用IIS。 没有pipe理或操作的副作用 – 它没有像IE浏览器一样固定在操作系统中。

在我pipe理的超过250台Windows服务器中,只有less于10台安装了IIS组件,如果这样可以帮助您放心的话。 如果您仍然担心,可以随时停止IIS服务,并确认服务器上没有任何内容中断,然后再开始删除IIS。

除非您想要托pipe网站,否则任何Windows系统都不需要IIS; 唯一的例外是如果您使用在Web服务(如WSUS)上运行的任何服务器angular色或提供它们(如证书服务)。

但是,如果您实际上对IIS有任何依赖性,那么当您尝试删除该angular色时,Windows本身会警告您这一点; 如果情况并非如此,则可以安全地将其删除(如果不需要,则确实应该)。

当您从WindowsServer2008R2取消阻止IIS时要小心:

pipe理控制台“。如果执行”目标上的Remove-WindowsFeature“操作”.NET Framework 3.5.1function“

import-module servermanager PS C:\Users\****> remove-windowsfeature web-server -whatif What if: Checking if running in 'WhatIf' Mode. What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 Management Console". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Tracing". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Windows Authentication". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] CGI". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ISAPI Extensions". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ISAPI Filters". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 Metabase Compatibility". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 WMI Compatibility". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS 6 Scripting Tools". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Request Filtering". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Static Content Compression". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Dynamic Content Compression". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Directory Browsing". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] HTTP Errors". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Default Document". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] HTTP Logging". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Static Content". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] HTTP Redirection". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] .NET Extensibility". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ASP.NET". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] ASP". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS Management Scripts and Tools". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] Management Service". What if: Performing operation "Remove-WindowsFeature" on Target "[Web Server (IIS)] IIS Management Console". What if: Performing operation "Remove-WindowsFeature" on Target "[.NET Framework 3.5.1 Features] HTTP Activation". What if: This server may need to be restarted after the removal completes. Success Restart Needed Exit Code Feature Result ------- -------------- --------- -------------- True Maybe Success {}