Search This Blog

Thursday, July 19, 2012

Setting password never expiry for O365 users


Customers can use the Microsoft Online Services Module for Windows PowerShell (MOSMWP) to configure their user passwords to never expire. Please refer to the following steps:

Setting password never expiry
=========================== 
1)    Download and install the module from the following page of the Microsoft Office 365 portal. To do this, sign in to the Microsoft Office 365 portal, navigate to https://portal.microsoftonline.com/IdentityFederation/IdentityFederation.aspx, and then under step 3, click Download.

2)    Use Microsoft Online Services Module for Windows PowerShell to connect to tenant account

Ø  On the Start menu, click Microsoft Online Services, and then click Microsoft Online Services Module for Windows PowerShell
Ø  Type Connect-MsolService, and then press Enter( Enter the Office 365 admin credential into the pop up windows)

3)    Run the following command by using the user principal name (UPN) or the user ID of the user to configure the password for that user to never change:

Set-MsolUser -UserPrincipalName -PasswordNeverExpires $true
Note If you want to change the setting for all the users in an organization, run the following command:

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

Find out whether a password is set to never expire
==========================================
1.       Connect to Microsoft Online Services Module for Windows PowerShell (MOSMWP) by using your company administrator credentials.
2.       Do one of the following:
·         To see whether a single user’s password is set to never expire, run the following cmdlet by using the user principal name (UPN) (for example, aprilr@contoso.onmicrosoft.com) or the user ID of the user you want to check:
Get-MSOLUser -UserPrincipalName | Select PasswordNeverExpires
·         To see the "Password never expires" setting for all users, run the following cmdlet:
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires


notes from the field, the users are ported from exchange sbs/2003, they wont be shown as expiry or not. new users created in o365 portal will be showing expriry.

but a customer's admin account not showing expiry, got forced to change password as well


No comments:

Post a Comment