As CRM Online becomes more and more popular, one of the issues that seem to pop up is the expiring of passwords. These usernames\passwords are inevitably changed when an integration comes along or perhaps with one of our PowerPacks. With a couple pieces of software we can set any users’ password to never expire.


Both of these applications are available from Microsoft and are free to download. Make sure you have the correct version installed before following the steps below.

  1. Microsoft Online Services Sign in Assistant
    • If you are using the CRM Outlook client for CRM Online, you should already have this installed, if not you can click here to download this program
  2. Windows PowerShell for Azure Active Directory
    • Click here to download the file

Once these programs are installed, open the Azure Active Directory Module for Window PowerShell program:

Password Expiration for Office 365 and CRM Online

  1. Type in the following command
    • Connect –MsolService and hit Enter
  2. You will then be prompted to enter an Office 365 administrator user and password

    Password Expiration for Office 365 and CRM Online

  3. If you have entered in correct username password, you will be brought back to the Powershell screen



    Password Expiration for Office 365 and CRM Online


  4. Now we can enter in the following command to ensure the password will never expire
    • Set –MsolUser –UserPrincipalName -PasswordNeverExpires $true
    • You will need to replace the with the actual username that you want updated

    Password Expiration for Office 365 and CRM Online



There you have it! Now the conundrum of trying to remember your passwords are behind you. Please keep our other fantastic blogs in mind as you navigate the waters of Dynamics CRM!

Happy CRM’ing!

Avatar for Joe D365

Joe D365

Joe D365 is a Microsoft Dynamics 365 superhero who runs on pure Dynamics adrenaline. As the face of PowerObjects, Joe D365’s mission is to reveal innovative ways to use Dynamics 365 and bring the application to more businesses and organizations around the world.