Password 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 -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 | 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
This was originally posted here.
*This post is locked for comments