I am trying to firstly disable password complexity for one user which seems to go through ok. I then try to change their password to the simple password they want and I get an error saying that its not complex enough! I'm using these commands:
Disable complexity: Set-MsolUser -UserPrincipalName firstname.lastname@example.org -StrongPasswordRequired $false
Change password: Set-MsolUserPassword –UserPrincipalName email@example.com -NewPassword "pass" -ForceChangePassword $false
Here is a screenie of this happening.
Please help a techie in need! Perhaps @Edu-IT can shed some light?
Last edited by fairm010; 13th March 2014 at 02:16 PM.
Reading that, must I make a security group for users who want a simple password? Ie it cannot be done for a single user?
I have just tested this again to be sure that the information is accurate.
Set-MsolUser -UserPrincipalName firstname.lastname@example.org -StrongPasswordRequired $false
Set-MsolUserPassword –UserPrincipalName email@example.com -NewPassword "password" -ForceChangePassword $falseStrongPasswordRequired : False
The security group just allows you to do the change on a much wider basis, and has no relevance to the behaviour.
The IMPORTANTthing to note above is
The password length still needs to be 8 characters minimum, so "password" will work fine... but "pass" will fail.
I have just noticed as well that the powershell error you receive is the same regardless of weather the StrongPasswordRequire value is $true / $falseSet-MsolUserPassword : You must choose a strong password that contains 9 to 16 characters, a combination of letters,
and at least one number or symbol. Choose another password and try again.
When you have StrongPasswordRequired $false - The only requirement is that the password contains 8 characters or more.
I hope that helps,
Last edited by EduTech; 13th March 2014 at 10:13 PM.
Thanks again James. Always a clear explanation! I'll give that a shot tomorrow.
That works! Thanks James!
There are currently 1 users browsing this thread. (0 members and 1 guests)