CanOfWorms
asked on
Access is Denied when trying to demote Windows Server 2012 Domain Controller
I have a newly build Windows Server 2012 Domain with 2 Domain Controllers. This domain is not in production yet. I wish to demote them both. I moved all FSMO roles to DC1, and performed the DCPROMO via Server Manager Remote Roles. I also attempted the demote using Power Shell. Each ends the same way. I have used the Administrator account and another account I created. I have checked DNS, etc.
The error I get is "Access is Denied", here is the verbiage from the PowerShell attempt.
PS C:\Users\ADMINISTRATOR> + Uninstall-ADDSDomainContro ller -RemoveApplicationPartitio ns
At line:1 char:2
+ + Uninstall-ADDSDomainContro ller -RemoveApplicationPartitio ns
+ ~
Missing expression after unary operator '+'.
At line:1 char:3
+ + Uninstall-ADDSDomainContro ller -RemoveApplicationPartitio ns
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
Unexpected token 'Uninstall-ADDSDomainContr oller' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordE xception
+ FullyQualifiedErrorId : MissingExpressionAfterOper ator
The error I get is "Access is Denied", here is the verbiage from the PowerShell attempt.
PS C:\Users\ADMINISTRATOR> + Uninstall-ADDSDomainContro
At line:1 char:2
+ + Uninstall-ADDSDomainContro
+ ~
Missing expression after unary operator '+'.
At line:1 char:3
+ + Uninstall-ADDSDomainContro
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'Uninstall-ADDSDomainContr
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordE
+ FullyQualifiedErrorId : MissingExpressionAfterOper
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Choose force
why not just rebuild the servers from scratch since you are starting over anyway?
and why do you have + in front of your command line?
full documentation is here:
Uninstall-ADDSDomainContro
https://technet.microsoft.com/en-us/library/hh974714.aspx?f=255&MSPPError=-2147217396