**UPDATED 11/13/2013 to reflect usage of Windows Azure Active Directory Module for Windows PowerShell.
- Download & install the Microsoft Online Services Sign-In Assistant for IT Professionals BETA
- Download & install the Windows Azure Active Directory Module for Windows PowerShell
(32-Bit | 64-Bit) - Launch PowerShell and ensure we have loaded the Office365 Module
Import-Module msonline
- Connect to Office365 using Administrative Credentials
$cred = Get-Credential Connect-MsolService -cred $cred
- Set all user’s passwords to never expire
Get-MsolUser | Set-MsolUser -PasswordNeverExpires $True
To set a single user’s password to not expire
Set-MsolUser -UserPrincipalName user@domain.tld -PasswordNeverExpires $false
- Confirm users passwords are set to not expire (Optional)
Get-MsolUser | fl UserPrincipalName,PasswordNeverExpires
Thanks to Jan Egil for her great blog post which helped me figure this out and subsequently a TechNet article for the 11/13/2013 update.