
When you reset a user's password using PowerShell, the password is updated in Azure AD, but it may take some time for the password to be synchronized back to your on-premises Active Directory. It sounds like the issue may be related to the fact that you are using Password Writeback and SSPR in a hybrid environment. Thank you for reaching out to the Microsoft Q&A platform. #Set-AzureADUserPassword -ObjectId (Get-AzureADUser -SearchString $userPrincipalName).ObjectId -Password $NewPassword # Set-MsolUserPassword -UserPrincipalName $userPrincipalName -NewPassword $NewPassword -ForceChangePassword $true Set-MsolUserPassword -UserPrincipalName $userPrincipalName -NewPassword $NewPassword -ForceChangePassword $true $NewPassword | ConvertTo-SecureString -AsPlainText -Force # Loop through each user and set license and password $userList = Import-Csv 'D:\OneDrive - GTIIT\IT Dept\PowerShell\Scripts\Case_Study\New_Employee_Action\Academic Member\Academic_Creation\Academic_20230510.csv' This symptom occurs when I’m using PowerShell, if I reset the user’s password via the AAD portal, it seems fine.Īny idea? We are using hybrid method by synchronizing our AD objects to the cloud and enabled both Password writeback and SSPR. The step that goes wrong is when the user tries to update his password, it always said “Try again-that's not your current password.” But that’s the password when he set up his MFA in the first place. The expected scenario is that the user will be given a one-time password, then login to set up his MFA, and then he’s asked to change a new password.

Recently, I’m trying to use PowerShell to reset new users' password online.
