Question Locked

How to automatically delete disabled Active Directory Accounts?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Every week my company generates termination reports of all the employees that we lost. I then disable these accounts in AD and put the termination date in the account description. My boss tells me today that we need to delete these accounts after 3 months. I want to know if their is a way to set up a rule or something to automatically delete these disabled accounts after a designated time period has elapsed. Any ideas?

3 replies

by markp24

Hi

to automate it, set the expiration date to 3 months out. You can use a powershell or vbscript for this.

or
here some utilites I use
joewareutilites - http://www.joeware.net/freetools/
dovestone software "True last logon" - this works good because you can move, enable, disable, report, and delete accounts.http://www.dovestone.com/info/Managing%20Active%20Directory.html?ses=Y3JlPTEzMTI4MzU2NTcmdGNpZD13d3cuZG92ZXN0b25lLmNvbTRlNDA0ODQ5MDFjZmEyLjA1Mjk4MTc3JmZraT05NTUwMDI0OCZ0YXNrPXNlYXJjaCZkb21haW49ZG92ZXN0b25lLmNvbSZzPTYxMTA1MTZiNmI2YmI1MTI2MWJmJmxhbmd1YWdlPWVuJmFfaWQ9Mg==&keyword=Managing%20Active%20Directory&token=TibxqqiKyHwKEwjThNb4xcCqAhWZQdoKHehizS8YASAEMOj_0gE4MEC_4vHBw_j9rOIBUOj_0gFQ9YuvEFDyqKURUNm78hFQ2rvyEVDkltwcUKyY3BxQr_icIVDeoK8paOSW3Bw

not free
netwrix inactive users tracker
www.anixis.com " account ferret"

by gmcflypcguy

Hey thanks for the tip. I read in my AD book that a powershell or a VB script could accomplish this with ease, however; my company has many levels in the IT department. I would have to request permission from many departments to install powershell or run a script on the servers (Bummer). So instead, I created a query with all the definitions set to what I wanted and it shows me the users I'm looking for. So I'll manually clean it up and put a new procedure in place to check the query monthly to manually delete all the users (like 30 a month I imagine). It's not quite what I wanted but it'll keep my boss happy without loading me down with too much extra work.

This discussion is closed to new replies.