删除WindowsFeature和卸载WindowsFeature之间有什么区别?

删除WindowsFeature和卸载WindowsFeature之间有什么区别?

我已经使用Windows 2008 R2的“添加 – 删除”function,但是现在有一个“安装 – 卸载” – 根据MSDN ,它只在Windows 2012和8

2012年版本的“可选删除”function在行为方面存在细微的差异,必须包含IncludeManagementTools作为参数才能删除pipe理控制台,作为卸载function的一部分,并且必须包含Remove以删除function文件从计算机,将允许function重新安装。

所有其他的不同之处在于它们在文件中的存在/遗漏。

删除WindowsFeature(2008 R2文档):

Remove-WindowsFeature cmdlet已在Windows Server 2012中被replace,并由Uninstall-WindowsFeature cmdlet转发。

[…]

Remove-WindowsFeature cmdlet允许您从运行Windows Server 2008 R2的计算机中删除指定的angular色,angular色服务和function。 Remove-WindowsFeature cmdlet的function与“删除angular色向导”和“删除function向导”的function类似,您可以从服务器pipe理器UI启动。 与在这些向导中一样,您可以删除每个会话的多个angular色,angular色服务或function。 您可以在“服务器pipe理器帮助”的“服务器pipe理器命令概述”主题中find所有angular色,angular色服务和function的命令ID列表。

从: http : //msdn.microsoft.com/en-us/library/ee662310.aspx

卸载 – WindowsFeature(2012文档):

通过添加Remove参数,还可以从计算机中删除function文件或有效负载。

[…]

Uninstall-WindowsFeature cmdlet会从运行Windows Server 2012 R2的计算机或安装了Windows Server 2012 R2的脱机虚拟硬盘(VHD)中卸载并可选地删除指定的angular色,angular色服务和function。 此cmdlet与服务器pipe理器中的“删除angular色和function向导”的工作方式类似,但有一个重要的例外:缺省情况下,运行Uninstall-WindowsFeature cmdlet时不会卸载pipe理工具; 您必须添加IncludeManagementTools参数以卸载关联的pipe理工具。

来自: http : //technet.microsoft.com/en-us/library/jj205471.aspx

没有

 PS C:\> help remove-windowsfeature NAME Uninstall-WindowsFeature SYNTAX Uninstall-WindowsFeature [-Name] <Feature[]> [-Restart] [-IncludeManagementTools] [-Remove] [-ComputerName <string>] [-Credential <pscredential>] [-LogPath <string>] [-WhatIf] [-Confirm] [<CommonParameters>] Uninstall-WindowsFeature [-Name] <Feature[]> [-Vhd <string>] [-IncludeManagementTools] [-Remove] [-ComputerName <string>] [-Credential <pscredential>] [-LogPath <string>] [-WhatIf] [-Confirm] [<CommonParameters>] ALIASES Remove-WindowsFeature REMARKS Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help. -- To download and install Help files for the module that includes this cmdlet, use Update-Help.