A month ago, we forced password change on all users. As you know, when you set “User must change password at next logon” option, you have to disable “Password never expires” option.
Now, I am beginning to receive warnings that password will expire in a week
I need to activate Password never expires option for accounts whose User must change password at next logon option is disabled. That is, if User must change password at next logon = off (which means that user already changed his password according to the new security policies), then Password never expires = on.
please help me to build a script for this?