Link to home
Start Free TrialLog in
Avatar of CanOfWorms
CanOfWormsFlag for United States of America

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-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
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

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:

Uninstall-ADDSDomainController
https://technet.microsoft.com/en-us/library/hh974714.aspx?f=255&MSPPError=-2147217396
ASKER CERTIFIED SOLUTION
Avatar of CanOfWorms
CanOfWorms
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CanOfWorms

ASKER

Choose force