Save user after creating before trying to read/set other properties. Fixes #1241

pull/18777/head
Chris Church 9 years ago committed by Matt Clay
parent c88feaff7e
commit d8f5a34d85

@ -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')) {

Loading…
Cancel
Save