Solved

windows 2012 r2 remove AD failed

Posted on 2015-01-21
18
2,025 Views
Last Modified: 2015-01-27
Hi, i'm trying to remove AD DS from a Windows 2012 R2 server (it the only server in the network). I have remove AD CS but i cant remote AD DS. The error
Failed to open the runspace pool. The server manager winrm plug-in might be corrupted or missing.
After i removed ADCS and the demote in ADDS i dont have domain anymore, the server is in workgroup but the ADDS is still there. I also get some error about profile service failed sign-in.
How could i remove Active Directory from the server?
0
Comment
Question by:per-w
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 5
  • 2
  • +1
18 Comments
 

Author Comment

by:per-w
ID: 40561509
I think the hole problem could be something with the profile service? If i try to run uninstall-adsddomaincontroller from powershell i get that credential permissions failed
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 40561515
The server is gone to workgroup, right?
logon to server as local administrator, create new account, add it in local administrators group and logon with new ID and try to cleanup ad from server manager remove roles\features
0
 

Author Comment

by:per-w
ID: 40561524
The problem is that when i create a new account i cant login with that new accoutn. I this error:
The user profile service failed the sign-in
user profile cannot be loaded.
And yes, its going to be in workgroup, not a domain.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 7

Expert Comment

by:Deadman
ID: 40561537
You can run dcpromo /unattend command on a domain controller to perform an unattended removal of AD DS.
To remove the AD DS server role binaries, use the dcpromo /uninstallbinaries command.
Demotion Operation type dcpromo /?:Demotion

You can also this command

dcpromo /unattend /username:<domain admin> /userdomain:<domain> /password:<DA password> /administratorpassword:<local admin password>

e.g.  The following example removes a domain controller from a domain named contoso.com, removes the AD DS server role binaries, and sets the local administrator password to p@$$w0rd:

dcpromo /unattend /username:DA1 /userdomain: contoso.com /password: DA1_password /administratorpassword: p@$$w0rd
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 40561545
Ok
Try below hotfix on server
http://support.microsoft.com/kb/2963211

Base article
http://support.microsoft.com/kb/2985344

If you still face issues, check if there are any profile registry problems as per below article
https://support.microsoft.com/kb/947215/en-us
0
 

Author Comment

by:per-w
ID: 40561547
cant run dcpromo on 2012, it tells me to use server manager.
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 40561548
DCPromo is deprecated on 2012 and above servers
0
 
LVL 7

Expert Comment

by:Deadman
ID: 40561557
Failed to open the runspace pool. The server manager winrm plug-in might be corrupted or missing.
Check your http.sys: netsh http show iplist to confirm that you are listening on the loopback address. if not, add 127.0.0.1 to the list of listeners.
add the loopback address (127.0.0.1) using the following command:
netsh http add iplisten 127.0.0.1

check this link
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2012/Q_28370501.html
0
 

Author Comment

by:per-w
ID: 40561695
The iplist is ok.
The default folder under c:\users was empty. I copied it from another Windows 2012 R2 server and now the new user i created could login. I will see if this helps on the other problems.
0
 

Author Comment

by:per-w
ID: 40561880
It looks like the problem is with the winrm plugin. If i run winrm invoke restore winrm/config it returns Restore_OUTPUT, if i run winrm invoke restore winrm/config/plugin it returns Restore_OUTPUT.
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 40562467
Run winrm qc from elevated command prompt to enable remote management and check if it resolves the issue
0
 

Author Comment

by:per-w
ID: 40562591
winrm qc doesnt help. It looks like anything is ok. But i also get a error when closing the Server Manager window that it cant save. So there must be something with the plugin between Server Manager and winrm ?
0
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 500 total points
ID: 40562726
If this was your last domain controller in your domain and you no longer have a domain anymore, why don't you just start over rather than trying to fix missing/failed services within the operating system.

Most likely there has been damage done to the OS which is why it is not working. Just reinstall the operating system and start over. This will save you more time in the long run.

Will.
0
 

Author Comment

by:per-w
ID: 40563693
There is some programs on the server that i want to keep. But it looks like the easy way and maybe the only way is to reinstall.
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 40563740
Try below
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess

Open in new window

Replace RepairSource with Windows DVD, as the source of the files

http://support.microsoft.com/kb/947821
0
 

Author Comment

by:per-w
ID: 40563749
thanks for the link, but i have started to reinstall the server since it must be up and running tomorrow.
I did run sfc /scannow  without any problem before i startet to reinstall.

Thanks to all for the help.
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 40564191
Excellent, this is probably the best approach as there may be other underlying issues at the server level.

Will.
0
 

Author Closing Comment

by:per-w
ID: 40574595
Not a solution, but the best answer.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question