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

Disable accounts if they are in a specific OU

Can you set a policy or property to an organizational unit within AD Users and Computers to disable an account if they are a member of that OU?

We automate account generation using MIIS. When an account is inactive for x days (based on information in MIIS), we have MIIS move that account from its existing OU to an OU entitled Disabled Users. We want accounts in the Disabled Users OU to actually be disabled as well.
0
Hatmonster
Asked:
Hatmonster
1 Solution
 
aissimCommented:
Personally, I don't know of any way to accomplish what you're specifically looking for. You could easily run a script every so often that disables all the accounts based on OU:
http://www.computerperformance.co.uk/ezine/ezine23.htm

Or use a program like ADModify.net to make bulk changes to all the accounts in that OU at one time:
http://www.codeplex.com/admodify/Release/ProjectReleases.aspx?ReleaseId=6065

I know, not as automated as you'd like....I'll be curious if someone else has a slick solution.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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