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-ADDSDomainController -RemoveApplicationPartitions
At line:1 char:2
+ + Uninstall-ADDSDomainController -RemoveApplicationPartitions
+  ~
Missing expression after unary operator '+'.
At line:1 char:3
+ + Uninstall-ADDSDomainController -RemoveApplicationPartitions
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'Uninstall-ADDSDomainController' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingExpressionAfterOperator
Who is Participating?
CanOfWormsAuthor Commented:
choosing 'force' during the demote allowed the domain controllers to demote. Because i didnt care what state the domain was left in, it suited me fine.
Seth SimmonsSr. Systems AdministratorCommented:
so you built a domain with 2 domain controllers and you are looking to remove them both, thus deleting the domain?
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:

CanOfWormsAuthor Commented:
Choose force
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.