Sure there are ways to disable accounts via scripts...You can do
anything with scripts.
There are third party tools which are more user friendly than creating
scripts.
One tool is called Active Directory Janitor. This product allows you
to scan for over 25 different properties including lastlogon.
You can sort by lastlogon date and disable the accounts right from the
console of Active Directory Janitor.
You can enable, disable, move, and delete user accounts directly from
this console.
You can also export your results for reporting.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.