Powershell script to disable user accounts

broken image
broken image

This script have two options you can just pull out list of inactive users report and the second option is to disable the inactive users and while disabling it will add description to those accounts. This script will identify users inactive for last 60 days in domain. Developed a powershell script to report and disable inactive users in domain.