Home > Exchange > Office365 – Setup user password to never expire

Office365 – Setup user password to never expire


10556458_10154368776145487_4319056439434303375_n

Below article describes you how to setup user password to never expire for your Office 365 user accounts. Microsoft do not recommend to perform this task for standard office 365 users unless you have service accounts.

Software Requirements

1. Operating System –

Windows 7, Windows 8, Windows Server 2008 R2, or Windows Server 2012 with the default version of Microsoft .NET Framework and Windows PowerShell.

 

2. Microsoft Online Services Sign-in Assistant

It is mandatory to install the appropriate version of the Microsoft Online Services Sign-in Assistant from the Download Center

 

3. Install Windows Azure AD module 

You must install Windows Azure AD Module for Windows PowerShell prior to go head with configuration.

    Installation Steps

image

    image

     

    image

     

    image

     

    How to set a password to never expire for single user and for all users

    For single user

    Connect to Windows PowerShell using Admin credentials

     

    Connect-MsolService

     

    image

     

    Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $true

     

    image

     

    For all users

    Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

     

    image

     

    How to check whether the password is set to never expire

    For single user

    Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires

     

    image

     

    For all users

    Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires

    Advertisements
    Categories: Exchange
    1. Johne953
      September 26, 2014 at 4:46 pm

      Hello to all, the contents existing at this site are in fact remarkable for people knowledge, well, keep up the nice work fellows. daedecgdaeae

    2. Johnb391
      September 26, 2014 at 4:46 pm

      As soon as I found this internet site I went on reddit to share some of the love with them. bcacddeabcbk

    1. No trackbacks yet.

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: