by ncol | Aug 15, 2023 | Blog
To set the exiration date for all users in certain OUs to 5 days ago: “OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com” | dsmod user -acctexpires -5 Powershell to force password change for all users in a certain OU: $users = Get-ADUser -Filter...