Jump to content

Recommended Posts

Posted (edited)

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 [email protected] -StrongPasswordRequired $false

 

Change password: Set-MsolUserPassword –UserPrincipalName [email protected] -NewPassword "pass" -ForceChangePassword $false

 

Here is a screenie of this happening.

 

[ATTACH=CONFIG]23340[/ATTACH]

 

Please help a techie in need! Perhaps @Edu-IT can shed some light?

 

Ta

Edited by fairm010
Posted (edited)

Hi,

 

I have just tested this again to be sure that the information is accurate.

 

Set-MsolUser -UserPrincipalName [email protected] -StrongPasswordRequired $false

 

StrongPasswordRequired : False

 

Set-MsolUserPassword –UserPrincipalName [email protected] -NewPassword "password" -ForceChangePassword $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.

 

Set-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.

 

I have just noticed as well that the powershell error you receive is the same regardless of weather the StrongPasswordRequire value is $true / $false

 

When you have StrongPasswordRequired $false - The only requirement is that the password contains 8 characters or more.

 

I hope that helps,

James.

Edited by EduTech
  • Thanks 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...