Solved

How long do machines stay in AD?

Posted on 2016-09-30
6
44 Views
Last Modified: 2016-11-09
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
Comment
Question by:Thomas N
6 Comments
 
LVL 17

Expert Comment

by:pjam
ID: 41823549
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
 
LVL 16

Expert Comment

by:Ivan
ID: 41823551
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
 
LVL 22

Accepted Solution

by:
Joseph Moody earned 334 total points
ID: 41823553
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
 
LVL 22

Assisted Solution

by:Joseph Moody
Joseph Moody earned 334 total points
ID: 41823557
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
 
LVL 54

Assisted Solution

by:McKnife
McKnife earned 166 total points
ID: 41824686
@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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
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 …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

830 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