This script forces users to change their password if they haven’t changed it in the last 5 days. I also filtered this by site (OU) in AD. #create all necessary variables $currenttime = get-date $lasttime = $currenttime.AddDays(-5) $changedusers = @() $allsites = @() #choose users from specific sites and add them to the …
Continue reading “Powershell – Advanced Selective Force Password Change AD”