How to Set Password Never Expire office 365

WORLDS BEST ORGANIC MULTIVITAMIN 

Nutrilite product shot

WORLDS BEST ORGANIC MULTIVITAMIN 

1. From a Windows 7 or 8 machine launch PowerShell as administrator

2. Run the following command to launch the Login Screen

$LiveCred = Get-Credential

In the Windows PowerShell Credential Request window that opens, type the credentials of an account in your cloud-based organization with global admin privileges. When you are finished, click OK.

3. Run this command to initiate the session

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Note The AllowRedirection parameter enables cloud-based organizations in datacenters all over the world to connect Windows PowerShell to the cloud-based service by using the same URL.

4. Import the session using the command

Import-PSSession $Session

.

5. Set the Password Never Expire Attribute on the Account

Set-MSOLUser –UserPrincipalName account@onmicrosoft.com –PasswordNeverExpires $true

account@onmicrosoft.com = UPN of the account

6. Check for accounts with Password Never Expire Attribute

Get-MsolUser | FL displayname,passwordneverexpires

 

WORLDS BEST ORGANIC MULTIVITAMIN 

Nutrilite product shot

WORLDS BEST ORGANIC MULTIVITAMIN 

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s