diff --git a/lib/ansible/modules/windows/win_user.ps1 b/lib/ansible/modules/windows/win_user.ps1 index ae4847a8528..b7be7e4eea3 100644 --- a/lib/ansible/modules/windows/win_user.ps1 +++ b/lib/ansible/modules/windows/win_user.ps1 @@ -146,6 +146,7 @@ If ($state -eq 'present') { If ($password -ne $null) { $user_obj.SetPassword($password) } + $user_obj.SetInfo() $result.changed = $true } ElseIf (($password -ne $null) -and ($update_password -eq 'always')) {