I need to reset a whole load of user passwords and then set them as expired or "User must change password on next login" The password is easy to change with SetADAccountPassword.
Looking at the SetADAccountControl cmdlet instructions suggests there is a "PasswordExpired" parameter in the description, but there is no mention of that parameter in the rest of the text. If I try it, it doesn't exist.
Ideally I'm hoping for a fairly simple, Powershell command to do it! I don't have any other scripting language on the server.
Thanks.
Should do the trick.
Office365 / ExchangeOnline / Exchange 2016 on Premises: