28 May’15

Dynamics CRMPassword Never Expire for Office 365 Account

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

Written by

Team Member

CloudFronts

Leave a Reply

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

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Reading more then 10K records in D3FOE OData API

    11 July’ 2018

    Introduction: We all know Dynamics 365 Finance and Operations has limitation of 10K records to be fetched at a time usi...

    Read more
  • Paging in D365 Customer Engagement v9.0

    10 July’ 2018

    Introduction: The Xrm.retrieveMultipleRecords method is used to retrieve a collection of records in Dynamics 365 Custom...

    Read more
  • Set up Dynamics 365 connection in Microsoft Social Engagement

    10 July’ 2018

    Introduction: This blog explains how to Set up Dynamics 365 connection in Microsoft Social Engagement. Steps to be follo...

    Read more
  • Voice of the Customer failed to install

    10 July’ 2018

    Introduction: Many people face issues in installing Voice of Customer solution on v9 environment and trying repeatedly ...

    Read more
  • Scribe Insight AX as a Web Service Find Block issue

    10 July’ 2018

    Introduction: If we need to look up for any value from AX then we do it by using a Find Block in Scribe Insight Eg: Basi...

    Read more