Uninstall-ADDSDomainController

Windows Server 2012 R2 and Windows 8.1

Uninstall-ADDSDomainController

Uninstalls a domain controller in Active Directory.

구문

Parameter Set: ADDSDomainControllerUninstall
Uninstall-ADDSDomainController [-Credential <PSCredential> ] [-DemoteOperationMasterRole] [-DnsDelegationRemovalCredential <PSCredential> ] [-Force] [-IgnoreLastDCInDomainMismatch] [-IgnoreLastDnsServerForZone] [-LastDomainControllerInDomain] [-LocalAdministratorPassword <SecureString> ] [-NoRebootOnCompletion] [-RemoveApplicationPartitions] [-RemoveDnsDelegation] [-RetainDCMetadata] [-SkipPreChecks] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ADDSDomainControllerUninstallForceRemoval
Uninstall-ADDSDomainController -ForceRemoval [-Credential <PSCredential> ] [-DemoteOperationMasterRole] [-Force] [-LocalAdministratorPassword <SecureString> ] [-NoRebootOnCompletion] [-SkipPreChecks] [-Confirm] [-WhatIf] [ <CommonParameters>]




자세한 설명

The Uninstall-ADDSDomainController cmdlet uninstalls a domain controller in Active Directory.

매개 변수

-Credential<PSCredential>

Specifies the user name and password that corresponds to the account used to install the domain controller. To prompt the user to supply a password, use "(Get-Credential)" in place of an existing PSCredential type. This causes Windows PowerShell to prompt the user to enter credentials using the Windows security login UI.


별칭

없음

필수 여부

false

위치

named

기본값

NULL

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DemoteOperationMasterRole

Indicates that (forced) demotion should continue even if an operations master role is discovered on domain controller from which AD DS is being removed.


별칭

없음

필수 여부

false

위치

named

기본값

NULL

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DnsDelegationRemovalCredential<PSCredential>

Specifies the account credentials (user name and password) to use when you create or remove the DNS delegation. If you do not specify a value, the account credentials that you specify for the AD DS installation or removal are used to remove the DNS delegation. As an alternative, you can specify the asterisk (*) to prompt the user to enter credentials.


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Force

When this parameter is specified any warnings that might normally appear during the uninstallation and removal of the domain controller will be suppressed to allow the cmdlet to complete its operation. This parameter can be useful to include when scripting uninstallation.


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ForceRemoval

Forces the removal of a domain controller. Use this parameter to force the uninstall of AD DS if you need to remove the domain controller and do not have connectivity to other domain controllers within the domain topology.


별칭

없음

필수 여부

true

위치

named

기본값

NULL

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-IgnoreLastDCInDomainMismatch

Used in conjunction with -LastDomainControllerInDomain. This parameter specifies whether the Windows PowerShell ignores any inconsistency that it detects with the value that you specify for -LastDomainControllerInDomain. For example, if you specify -LastDomainControllerInDomain but Windows PowerShell detects that there is actually another active domain controller in the domain, you can specify -IgnoreLastDCInDomainMismatch to have Windows PowerShell continue the removal of AD DS from the domain controller despite the inconsistency that it has detected. Similarly, if you do not specify -LastDomainControllerInDomain but Windows PowerShell cannot detect that another domain controller is in the domain, you can specify -IgnoreLastDCInDomainMismatch to have Windows PowerShell continue to remove AD DS from the domain controller.


별칭

없음

필수 여부

false

위치

named

기본값

NULL

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-IgnoreLastDnsServerForZone

Specifies whether to continue the removal of AD DS despite the fact that the domain controller is the last DNS server for one or more of the Active Directory-integrated DNS zones that it hosts.


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-LastDomainControllerInDomain

Specifies whether the computer from which AD DS is being removed is the last domain controller in the domain.


별칭

없음

필수 여부

false

위치

named

기본값

NULL

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-LocalAdministratorPassword<SecureString>

Specifies a local administrator account password when AD DS is removed from a domain controller. In earlier releases, where uninstall of AD DS was done using Dcpromo.exe for demotion, the default was to allow an empty password for this setting. In Windows PowerShell, the ADDS Deployment module requires that a non-empty password string value be assigned. If a value is not provided for this parameter, you will be prompted to enter a value for the password at the Windows PowerShell prompt. The password value must be a secure string.

If this parameter is not specified, the cmdlet prompts you to enter and confirm a masked password. This is the preferred usage when running the cmdlet interactively. If additionally there are no other arguments specified with the cmdlet, you will be prompted to enter a masked password for this parameter but no confirmation of the password entered will be made (which is not recommended as it could allow a mistyped password to be configured). Another available advanced option is to use the ConvertTo-SecureString cmdlet and specify the password string inline as unmasked console input, which is also not a recommended security best practice in production deployments.


별칭

없음

필수 여부

false

위치

named

기본값

<mandatory>

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-NoRebootOnCompletion

Specifies whether to not restart the computer upon completion, regardless of success. (By default, reboot upon completion occurs when this cmdlet is used and this parameter is omitted.) As a general rule, Microsoft support recommends that you not use this parameter except for testing or troubleshooting purposes because once configuration has completed the server will not function correctly as either a member server or a DC until it is rebooted.


별칭

없음

필수 여부

false

위치

named

기본값

NULL

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-RemoveApplicationPartitions

Specifies whether to remove application partitions during the removal of AD DS from a domain controller.


별칭

없음

필수 여부

false

위치

named

기본값

NULL

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-RemoveDnsDelegation

Specifies whether to preserve DNS delegations that point to this DNS server from the parent DNS zone.

By default, this parameter is set to FALSE, which means DNS delegations that point to this server from the parent DNS zone will not be retained after uninstallation of the domain controller. This setting corresponds to the earlier Dcpromo.exe parameter default of /RemoveDNSDelegation:Yes.


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-RetainDCMetadata

If this parameter is used it indicates that metadata from the domain controller should be preserved after uninstallation is completed.


별칭

없음

필수 여부

false

위치

named

기본값

FALSE

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-SkipPreChecks

Indicates that only a base set of validations will be performed. This behavior is equivalent to the validations that were performed when using Dcpromo.exe in earlier versions of Windows Server to add a new domain controller. When this switch parameter is set, it specifies that additional preliminary checks should be bypassed. For more information on the scope of these additional preliminary checks that the ADDSDeployment module performs by default when using Windows Server 2012, refer to the table in the section “Prerequisite Checking” in the Understand and Troubleshoot AD DS Simplified Administration in Windows Server 2012 guide (http://go.microsoft.com/fwlink/?LinkID=237244).


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.


필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.


필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

예제

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

Removes AD DS from an additional domain controller in a domain and causes the user to be prompted to set and confirm the local Administrator password prior to completing the removal process.


PS C:\> Uninstall-ADDSDomainController

관련 항목

커뮤니티 추가 항목

추가
표시: