We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eaf73a commit fe6ff34Copy full SHA for fe6ff34
ActiveDirectory/Users/Reset-ADUserPassword.ps1
@@ -128,7 +128,7 @@ try{
128
129
130
if($UserMustChangePasswordAtLogon -eq $true){
131
- Set-ADUser @cmdArgs -PasswordNeverExpires $false -ChangePasswordAtLogon $true -CannotChangePassword $false
+ Set-ADUser @cmdArgs -PasswordNeverExpires $false -ChangePasswordAtLogon $true -CannotChangePassword $false -Confirm:$false
132
$Out += "User $($Username) must change the password on next logon"
133
}
134
Start-Sleep -Seconds 5 # wait
0 commit comments