Question: how to demote a domain controller in windows server 2012 r2?
Answer: Use Server Manager to remove the Active Directory Domain Services Role. Launch Server Manager, select the Manage drop down menu, select Remove roles and features. Review the Before You Begin page, Click Next.