› Dynamics CRM › Password Never Expire for Office 365 Account

Password Never Expire for Office 365 Account

 Admin   Leave a comment

Table of Contents

1. Requirements…………………………………1

2. Set password never expire for user……………..1

3. Check Password never expire for user……………2

Set password never expire for office 365 account can be achieve using Azure Active Directory Module for Windows PowerShell only.

1. Requirements

1. Office 365 admin account.

2. Microsoft Online Services Sign-in Assistant.

3. Azure Active Directory Module for Windows PowerShell.

First install Microsoft online Services Sign-in Assistant on your computer. Microsoft online Services Sign-in Assistant is used for authenticate and communicate with Microsoft online services.

To download used following link
http://www.microsoft.com/en-us/download/details.aspx?id=41950

Azure Active Directory Module for Windows PowerShell is used to manage office 365 account.

To download azure AD module used following link

=> Azure Active Directory Module for Windows PowerShell (32-bit version)

=> Azure Active Directory Module for Windows PowerShell (64-bit version)

2. Set password never expire for user

Open Azure Active Directory Module for Windows PowerShell
Default location C:\Windows\System32\WindowsPowerShell\v1.0
Then open powershell_ise

Or

Windows “start” search Windows Azure Active Directory Module for Windows PowerShell

In command prompt type following command to connect Office 365 account

For connection used user account who has global administrator role in office 365.

Type following command to connect to office 360 account.
Command: Connect-MsolService

Enter credentials of office 365 account.

Example: user id with admin@mkadam4.onmicrosoft.com

Set password never expire for following user id admin@mkadam4.onmicrosoft.com

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

Example: Set-MsolUser -UserPrincipalName admin@mkadam4.onmicrosoft.com -PasswordNeverExpires $true

Set all users in office 365 as password never expire
Command: Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

3. Check Password never expire for user

Find out whether a password is set to never expire for particular user
Command : Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires

Example: Get-MSOLUser -UserPrincipalName admin@mkadam4.onmicrosoft.com | Select PasswordNeverExpires

Find out whether a password is set to never expire for all users
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires

Note: We cannot checked, which user has set Password Never Expires to true from office 365 web portal.

For more information used following link for reference
http://office.microsoft.com/en-in/office365-suite-help/set-up-user-passwords-to-never-expire-HA102816049.aspx?CTT=5&origin=HA102816546


Liked it? Share it.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.