Save user after creating before trying to read/set other properties. Fixes #1241
This commit is contained in:
parent
c88feaff7e
commit
d8f5a34d85
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue