删除和卸载WindowsFeature之间的区别

时间:2018-12-03 08:49:19

标签: powershell msmq windows-server windows-server-2016 windowsfeature

我正在运行Windows Server 2016,并通过Powershell命令添加了Windows功能:

Add-WindowsFeature NET-WCF-MSMQ-Activation45

如果要删除/卸载它,应该使用哪个?

Remove-WindowsFeature NET-WCF-MSMQ-Activation45

Uninstall-WindowsFeature NET-WCF-MSMQ-Activation45

此外,更改后是否需要重启服务器?

谢谢。

1 个答案:

答案 0 :(得分:2)

如有疑问,请阅读documentation

  

Uninstall-WindowsFeature

     

从运行Windows Server 2012 R2的计算机上卸载指定的Windows Server角色,角色服务和功能。通过添加Remove参数,还可以从计算机中删除功能文件或有效负载。 此cmdlet替换了Remove-WindowsFeature ,该cmdlet用于卸载Windows Server 2008 R2中的角色,角色服务和功能。

相关问题