• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 62
  • Last Modified:

How long do machines stay in AD?

If machines have been removed off the network, is there a setting to remove the machines from AD automatically? Or do we have to do it manually?

If there is a setting, where is it?
0
Thomas N
Asked:
Thomas N
3 Solutions
 
pjamCommented:
Interesting question.  I have always deleted them as they stay there until I do.
If there is a setting I would like to know too
0
 
IvanSystem EngineerCommented:
Hi,

I don't think there is a setting for that. Machines not connected in 90 days loose connectivity and have to be rejoined. As far as I know, you would have to do it manually.

I guess that it could be done via some script, that would check when did machine last time connected to domain, and if it did not in past XX days, it would delete computer account.. but I would not do it.

Maybe some1 else has some idea :)

Regards,
Ivan.
0
 
Joseph MoodyBlogger and wearer of all hats.Commented:
There is not a built in stale object removal feature in AD. There are many free scripts and tools though. My favorite is oldcmp. http://www.joeware.net/freetools/tools/oldcmp/index.htm

But you can also use powershell (here is an example: https://deployhappiness.com/managing-inactive-computers-and-users-in-active-directory/)
0
 
Joseph MoodyBlogger and wearer of all hats.Commented:
Before deleting computers, you will want to enable the AD recycle bin as a safety switch. Some people also disable the objects and move them to a special OU for X amount of time before deleting them.
0
 
McKnifeCommented:
@Ivan's "Machines not connected in 90 days loose connectivity and have to be rejoined." - what are you talking about? There is no such mechanism, you can stay offline like forever an you are still able to connect, no unjoining takes place.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now