AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 650613
Accepted
SteveC
SteveC
Asked: 2014-12-10 02:39:47 +0800 CST2014-12-10 02:39:47 +0800 CST 2014-12-10 02:39:47 +0800 CST

Remove-WindowsFeature 和 Uninstall-WindowsFeature 有什么区别?

  • 772

Remove-WindowsFeature 和 Uninstall-WindowsFeature 有什么区别?

我在 Windows 2008 R2 机器上使用了 Add- 和 Remove- ,但现在有一个 Install- 和 Uninstall- 根据MSDN仅在 Windows 2012 和 8 上

powershell
  • 2 2 个回答
  • 10800 Views

2 个回答

  • Voted
  1. Best Answer
    austinian
    2014-12-11T11:49:34+08:002014-12-11T11:49:34+08:00

    2012 版“可选地删除”该功能的行为存在细微差别,IncludeManagementTools必须将其作为参数包含在卸载该功能的过程中删除管理控制台,并且必须包含该参数才能Remove从允许重新安装该功能的计算机。

    所有其他差异都可以通过它们在文档中的存在/遗漏来明确。

    Remove-WindowsFeature(2008 R2 文档):

    Remove-WindowsFeature cmdlet 在 Windows Server 2012 中已被 Uninstall-WindowsFeature cmdlet 取代。

    [...]

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

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

    卸载-WindowsFeature(2012 文档):

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

    [...]

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

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

    • 7
  2. Ryan Bolger
    2014-12-11T11:07:37+08:002014-12-11T11:07:37+08:00

    没有什么

    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.
    
    • 2

相关问题

  • 资源锁和电源外壳

  • 脚本 - 如何断开远程桌面会话?

  • 如何限制向通讯组发送到外部地址?

  • Powershell对值与数组的作用不同?

  • Windows Powershell Vim 键绑定

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve