Collaborate without boundaries

How to set user passwords never expired in office 365 (P1)?

How to set user passwords never expired in office 365 (P1)?

  • 5 Followers
  • 7 Replies |
  • This post has 1 verified answer |
Answered (Verified) This question is answered

I tried to follow topic http://community.office365.com/en-us/forums/150/p/18015/83875.aspx#83875 to make our company's user passwords in 365 to never expire. I got a following error message in Windows PowerShell (screenshot below) "The term 'Connect-MSOLService' is not recognized as the name of o cmdlet, function, script file or operable program." Etc...

 

  

Verified Answer
  • Hello Sami,

    From your screenshot, I see it is not Microsoft Online Services Module for Windows PowerShell. For it does not include Windows built-in PowerShell, I suggest you use Microsoft Online Services Module for Windows PowerShell to set user passwords to never expire.
    For how to install the Office 365 cmdlets:
    http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh124998.aspx#BKMK_install

    Besides, you can follow these steps after you install it.
    1.Open the Microsoft Online Services Module.
    2.Run $cred=Get-Credential. When the cmdlet prompts you for credentials, type your Office 365 administration account credentials.
    3.Run Connect-MsolService -Credential $cred. This cmdlet connects you to Office 365. Creating a context that connects you to Office 365 is required before running any of the additional cmdlets installed by the tool.
    4.Run Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $true .
    5.Run Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires to see whether the user’s password is set never expire.

    For your reference:
    Configure user passwords to never expire:
    http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh534387.aspx

    Richard and Jorge, thanks for your efforts.

    Thanks,
    Cherry Wang

    • Top 50 Contributor
All Replies
Page 1 of 1 (8 items)