How to Configure Password Never Expired in Office 365

1. Open Windows PowerShell 2.0

2. At the prompt, type $cred = Get-Credential. The user is prompted to enter their administrative credentials.

3. Create a Remote PowerShell object. To do this, type the following:

$Session = New-PSSession-ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $Cred -Authentication Basic -AllowRedirection

Download all the available cmdlets from the server. To do this, type Import-PSSession $session. After this command is run successfully, the available cmdlets are downloaded

Then type the command below:

Set-MsolUser-UserPrincipalName <Microsoft Online Services ID> -PasswordNeverExpires $true


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: