+ Post New Thread
Results 1 to 7 of 7
Cloud Services Thread, Office 365 Powershell Problem in Technical; ...
  1. #1
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,226
    Thank Post
    47
    Thanked 157 Times in 138 Posts
    Rep Power
    47

    Office 365 Powershell Problem

    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 user@schoolname.co.uk -StrongPasswordRequired $false

    Change password: Set-MsolUserPassword –UserPrincipalName user@schoolname.co.uk -NewPassword "pass" -ForceChangePassword $false

    Here is a screenie of this happening.

    o365powershellcapture.PNG

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

    Ta
    Last edited by fairm010; 13th March 2014 at 02:16 PM.

  2. #2
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,226
    Thank Post
    47
    Thanked 157 Times in 138 Posts
    Rep Power
    47
    I have just realised I mentioned the wrong person! Sorry @Edu-IT ! I meant @EduTech

  3. #3


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,069
    Thank Post
    232
    Thanked 2,718 Times in 2,006 Posts
    Rep Power
    797

  4. #4
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,226
    Thank Post
    47
    Thanked 157 Times in 138 Posts
    Rep Power
    47
    Reading that, must I make a security group for users who want a simple password? Ie it cannot be done for a single user?

  5. #5

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,068
    Thank Post
    160
    Thanked 925 Times in 727 Posts
    Blog Entries
    3
    Rep Power
    273
    Hi,

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

    Set-MsolUser -UserPrincipalName nocomplexpassuser@tenant.onmicrosoft.com -StrongPasswordRequired $false

    StrongPasswordRequired : False
    Set-MsolUserPassword –UserPrincipalName nocomplexpassuser@tenant.onmicrosoft.com -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.
    Last edited by EduTech; 13th March 2014 at 10:13 PM.

  6. 2 Thanks to EduTech:

    fairm010 (14th March 2014), Marshall_IT (13th March 2014)

  7. #6
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,226
    Thank Post
    47
    Thanked 157 Times in 138 Posts
    Rep Power
    47
    Thanks again James. Always a clear explanation! I'll give that a shot tomorrow.

  8. #7
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,226
    Thank Post
    47
    Thanked 157 Times in 138 Posts
    Rep Power
    47
    That works! Thanks James!

SHARE:
+ Post New Thread

Similar Threads

  1. Office 365 ADFS SSO Problem
    By Norphy in forum Cloud Services
    Replies: 7
    Last Post: 18th September 2013, 04:23 PM
  2. Bulk change Office 365 user names using Powershell?
    By adamf in forum Cloud Services
    Replies: 7
    Last Post: 10th July 2013, 08:14 AM
  3. Office 365 Powershell command, not doing what I expect
    By mbedford in forum Cloud Services
    Replies: 3
    Last Post: 7th June 2013, 08:37 PM
  4. Office 365 Useful Powershell
    By sottonk in forum Cloud Services
    Replies: 2
    Last Post: 8th March 2013, 01:54 PM
  5. Office 365 connection problems...
    By Mr_Jiminy in forum Cloud Services
    Replies: 4
    Last Post: 19th December 2012, 09:22 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •