- Don't make the users local admins
- That's the default action. When you disjoin computers from the domain, the account remains in the directory. It gets marked Disabled
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We are facing below issues, need your support
Thanks
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
What could be the reason?
Sounds like the users are administrators. As to users joining domain read on here.
https://social.technet.microsoft.com/Forums/windowsserver/en-US/72448623-3b87-45c4-812e-9a6e0bad6987/disable-users-to-join-computer-to-domain?forum=winserverDS
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
Hello Dear,
Thank you for your question and reaching out.
Based on the information provided,
I suggest you to follow the steps mentioned below and see if that helps.
Assign rights using the Default Domain Group policy:
Delegate rights using active directory Users and Computers:
---------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--
Thanks all for the answers but still these aren't helpful.
I tested on many computers these 3 conditions;
logged in to the computers with the local administrator, and unjoined them from the domain it asks for credentials I put any random character & computer removed from domain but records are still there in AD & DNS - Not Removed, not disabled.
Logged in with domain user, unjoined from domain with any random characters & it removes computer from domain but Not disabled in AD.
Logged in with domain user, Unjoined from domain with Domain Credentials having privilege to add/delete computer members & it works fine.. computer disabled in AD.
My Question is with any account who is member of local administrator group can remove from domain putting any characters with not make computer disabled in AD. We have thousands of domain computers and even Technicians don't put the correct credentials can remove from domain and that will make mess in AD.
How to control this?
Thanks
Maybe something similar here will work.
https://community.spiceworks.com/scripts/show/1861-find-and-disable-or-remove-inactive-ad-computer-accounts
--please don't forget to upvote
and Accept as answer
if the reply is helpful--