Thursday, July 26, 2012

How to configure user passwords to never expire in Office 365

You need to download the Microsoft Online Services Sign-in Assistant

2)       And also you need to install the PowerShell Msonline Module.

System requirements

Supported Operating Systems: Windows Vista, Windows Vista 64-bit Editions Service Pack 1, Windows Vista Business, Windows Vista Business 64-bit edition, Windows Vista Enterprise, Windows Vista Enterprise 64-bit edition, Windows Vista Home Basic, Windows Vista Home Basic 64-bit edition, Windows Vista Home Premium, Windows Vista Home Premium 64-bit edition, Windows Vista Service Pack 1, Windows Vista Ultimate, Windows Vista Ultimate 64-bit edition, Windows XP, Windows XP Professional Edition, Windows XP Service Pack 2, Windows XP Service Pack 3, Windows XP Tablet PC Edition

Requirements provided to subscribers via the Microsoft Online Services Administration Center or My Company Portal. This product intended for use with Microsoft Online Services only.

Microsoft Online Services Sign-in Assistant Setup (now required for MSONLINE powershell)

http://office.microsoft.com/en-us/word-help/redir/XT102098586.aspx?CTT=5&origin=HA102065466

 

PowerShell Msonline Module

http://g.microsoftonline.com/0BD00en-US/85

 

After the download is completed, please copy and paste this section into the PowerShell window. And enter your credentials.

 

1)       $Cred = Get-Credential

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

Import-PSSession $Session

 

2)       Import-Module MSOnline

$Creds = Get-Credential

Connect-MsolService –Credential $Creds

3)       Set-MsolUser -UserPrincipalName contoso@microsoft.com -PasswordNeverExpires $true

Note If you want to change the setting for all the users in an organization, run the following command:

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

 

N.B Replace the red highlight text with your e-mail address.

 

Sam Dawsen | E-mail: v-sadaws@microsoft.com

via Microsoft Office 365 Community.

No comments:

Post a Comment