Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, November 13, 2017 10:34 AM
Hi all,
I was changing the password of a user mailbox from PowerShell and getting the following error (shown in screenshot). I have tried to use several passwords.
Below is the full command I am using,
Set-Mailbox -Identity "karim buzdar" -OldPassword (ConvertTo-SecureString -string “@fakeid11” -AsPlainText -Force) -NewPassword (ConvertTo-SecureString -string “@Client1” -AsPlainText -Force)
However, I have successfully changed the password from ADUC.
Thank you,
Karim
All replies (9)
Monday, November 13, 2017 11:38 AM
You can try below :
$password = Read-Host "Enter password" -AsSecureStringSet-Mailbox -Identity "karim buzdar" -Password $password
Let us know how it goes
GD
Monday, November 13, 2017 11:46 AM
This says "you don't have permission to directly change a mailbox account password without providing old password".
Reset password role is required for directly changing the password.
What is the problem with a method I mentioned before.
Thank you,
Monday, November 13, 2017 12:00 PM
This error is due to the role group you are assigned to.
There is no problem with the method you've used, however the password you chose doesn't fall in your pwd criteria (as long as you've tried multiple\long password its is unusual indeed)
I've tried below and seems working, could you give it a try line by line
$oldpassword = "@fakeid11"
$newpassword = "@Client100"
Set-Mailbox -Identity "karim buzdar" -OldPassword (ConvertTo-SecureString -string “$oldpassword” -AsPlainText -Force) -NewPassword (ConvertTo-SecureString -string “$newpassword” -AsPlainText -Force)
Please share output
GD
Monday, November 13, 2017 12:15 PM
I am getting the same error,
set-mailbox : The password you entered doesn't meet the minimum security requirements.
Monday, November 13, 2017 12:34 PM
can you enter below commands and paste the output
Import-Module activedirectory
Get-ADDefaultDomainPasswordPolicy
GD
Monday, November 13, 2017 12:51 PM
Below is the output,
Monday, November 13, 2017 1:14 PM
Alright..
Can you try the same commands below for your own account twice!
$oldpassword = "edit"
$newpassword = "edit"
Set-Mailbox -Identity "youraccount" -OldPassword (ConvertTo-SecureString -string “$oldpassword” -AsPlainText -Force) -NewPassword (ConvertTo-SecureString -string “$newpassword” -AsPlainText -Force)
Please share output, this will help confirming password policy enforcement.
We are expecting it to work for the first time and give same error for the second time
GD
Wednesday, November 15, 2017 9:13 AM
minpasswordage is 1 day.
did you change the password within 1 day from ADUC?
you have to wait for more than 1 day and then try
Thanks & Regards Ramandeep Singh
Friday, November 17, 2017 9:08 AM
Hi Karim,
Do you have any update on this issue?
Regards,
Alex
Please remember to mark the replies as answers if they helped.
If you have feedback for TechNet Subscriber Support, contact [email protected].