You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
4 months ago | |
---|---|---|
README.md | 4 months ago | |
lock_inactive_accounts.ps1 | 4 months ago |
README.md
lock_inactive_users
Lock and/or delete AD accounts which are inactive
Usage
By default users who did not log in for 90 days, their account will be put inactive. After this, accounts which are inactive for 6 months will be deleted.
This can be customized in the variables: $90Days = (get-date).adddays(-90) and $6Months = (get-date).AddMonths(-6)