Active Directory, Windows Server 2012 environment, Windows 7 Clients.
I really need a Powershell Script that can run once a day to Get Users with Passwords about to expire that will force change password at next logon.
Its getting beyond a joke that users ignore the vbs script I have running, it notifies users 6 days in advance of expiration and I still receive phone calls everyday that users cant access emails or shared drives, all simply because the account password has expired.
Please help. Is there a PS Cmdlet that will do something like this...
Get-ADUser -Filter *password is about to expire* -Searchbase "ou=users,dc=domain,dc=com" | Set-ADUser -ChangePasswordAtLogon
If anybody could provide any help at all that would be great.
Thank you