CmdID

CmdID / PowerShell / Cmdlets / Uninstall

Uninstall-ADDSDomainController

Uninstalls a domain controller in Active Directory. Windows Server PowerShell reference

From the Windows Server PowerShell reference 16 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

16 in the Windows Server PowerShell reference
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-CredentialSpecifies the user name and password that corresponds to the account used to install the domain controller.
-DemoteOperationMasterRoleIndicates that forced demotion should continue even if an operations master role is discovered on the domain controller from which AD DS is being removed.
-DnsDelegationRemovalCredentialSpecifies the account credentials to use when you create or remove the DNS delegation.
-ForceForces the command to run without asking for user confirmation.
-ForceRemovalIndicates that the cmdlet forces the removal of a domain controller.
-IgnoreLastDCInDomainMismatchIndicates that Windows PowerShell ignores any inconsistency that it detects with the value that you specify for the LastDomainControllerInDomain parameter.
-IgnoreLastDnsServerForZoneIndicates that the cmdlet continues 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.
-LastDomainControllerInDomainIndicates that the computer from which AD DS is being removed is the last domain controller in the domain.
-LocalAdministratorPasswordSpecifies a local administrator account password when AD DS is removed from a domain controller.
-NoRebootOnCompletionIndicates that the cmdlet restarts the computer upon completion, regardless of success.
-RemoveApplicationPartitionsIndicates that this cmdlet removes application partitions during the removal of AD DS from a domain controller.
-RemoveDnsDelegationSpecifies whether to preserve DNS delegation that point to this DNS server from the parent DNS Zone.
-RetainDCMetadataIndicates that metadata from the domain controller should be preserved after uninstallation is completed.
-SkipPreChecksIndicates that only a base set of validations is performed.
-WhatIf, -wiShows what would happen if the cmdlet runs.