After some debugging, found the following:
I debugged and testing this on windows 2012r2. If windows supports password changes of disabled user, shouldn't puppet also change the password and display a notice/warning that the user is disabled? This way the command will become idempotent, and the ending notice will be true. Should I continue using this logic, or just try to remove the password change notice in case of a disabled user? |