Solved

domain auto disable

Posted on 2014-03-24
2
212 Views
Last Modified: 2014-03-25
Is there an easy way of disabling all domain accounts after 60 days of inactivity (i.e. not logged in)? I appreciate passwords expire (dependant on policy after a predefined number of days, however they arent truly locked as it just prompts a user for a fresh password).

Can you forsee any issues in applying such a policy?
0
Comment
Question by:pma111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Manjunath Sullad earned 250 total points
ID: 39949851
Using Powershell script you can achieve your requirement,

Script : http://gallery.technet.microsoft.com/scriptcenter/83d39949-3e22-45ef-aaba-3a4e17341c5e


If you want to make it scheduled activity, You can configure in Scheduled task,



- Manjunath Sullad
0
 
LVL 16

Assisted Solution

by:gurutc
gurutc earned 250 total points
ID: 39950062
We use the exact script as recommended above with great success.

Not looking for points, just agreeing.

We modify it to set the search to start in OUs that contain actual-people user-objects.  We also have service accounts that exceed our 30 day limit that we don't want to disable due to inactivity so we put them in other OUs not subject to our script.

- gurutc
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Here's a look at newsworthy articles and community happenings during the last month.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

691 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