Solved

domain auto disable

Posted on 2014-03-24
2
209 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
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

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

Suggested Solutions

Title # Comments Views Activity
Need to replace W2003 server with Win2008R2. 3 28
Existing Office 365 implement on-premise AD 4 48
Elevated user monitoring in Active Directory 4 31
Server timing 4 22
Synchronize a new Active Directory domain with an existing Office 365 tenant
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
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.

831 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