Remove-WindowsFeature와 Uninstall-WindowsFeature의 차이점은 무엇입니까?


8

Remove-WindowsFeature와 Uninstall-WindowsFeature의 차이점은 무엇입니까?

Windows 2008 R2에서 추가 및 제거 상자를 사용했지만 MSDN 에 따르면 Windows 2012 및 8에만 있는 설치 및 제거가 있습니다.


1
이것을 ServerFault.com으로 옮기기로 투표했습니다. 나는 두 가지 방법을 모두 사용하는 사람들을 만날 가능성이 더 큽니다.
— EBGreen

그리고 "여기서 문서를 읽기에는 너무 게으르다"라는 질문에 대해서는 다루지 않기로 결심합니다.
— TomTom

추가 제거가 설치 / 제거로 대체 된 것을 알고 있지만 실제 변경 내용을 찾을 수있는 것은 없습니다!
— SteveC

답변:


7

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

Uninstall-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


2

아무것도

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.

이것이 바로 Windows 2012 서버에서 얻을 수있는 것입니다. 이는 2012 시스템에 Uninstall 만 설치되고 Remove의 별명이라는 사실을 지원합니다. 문제는 Uninstall (2012에 있음)과 Remove (2008에 있음)의 차이점에 관한 것입니다.
— EBGreen

흥미 롭군 나는 몰랐다.
— Ryan Bolger
당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.