This script will search for User accounts not used in -monthsUnused months.
Found users will be disabled and moved to the -disabledOU (if parameter is present)

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name DisableUnusedUserAccounts

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Jack Olsson

Version History

Version Downloads Last updated
1.0.1 (current version) 161 8/1/2018
1.0.0 15 7/23/2018