Over 10 years we help companies reach their financial and branding goals. Engitech is a values-driven technology agency dedicated.

Gallery

Contacts

411 University St, Seattle, USA

engitech@oceanthemes.net

+1 -800-456-478-23

Office 365 Small Business Change Password Policy Powershell. Set Password Policy to Never Expire

 

Set the office 365 Small Business Password Policy using Powershell or Online 2 Ways

Office365Password

 

 

 

Download the Windows Azure AD Powershell from here

 

http://technet.microsoft.com/en-us/library/jj151815.aspx

 

Install Microsoft Online Services Sign-in Assistant

 

http://go.microsoft.com/fwlink/?LinkId=286152

 

Install the Windows Azure AD Module

 

64bit http://go.microsoft.com/fwlink/p/?linkid=236297

 

32bit http://go.microsoft.com/fwlink/p/?linkid=236298

 

Run the windows Azure Active Directory Module for Windows Powershell as ADMINISTRATOR

 

Type in the following commands to get connected to your Office 365 account

 

Set-ExecutionPolicy RemoteSigned

 

$LiveCred = Get-Credential

 

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

 

Import-PSSession $Session

 

Connect-MsolService -Credential $livecred

 

Type in the following command to get the password policy for all users

 

Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires

 

Type in the following command to get the password policy for a specific user

 

Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires

 

 

 

Type in the following command to change the password policy for all users to never expire

 

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

 

 

 

Verify settings by typing in the following command which is the same as above

 

Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires

 

More Posts

Employee Spotlight: Alexys

AngelCom is featuring our Sr Systems Engineer, Brandon, for the June Employee Spotlight. Read about how and what a Systems Engineer does at AngelCom.

Employee Spotlight

AngelCom is featuring our Sr Systems Engineer, Brandon, for the June Employee Spotlight. Read about how and what a Systems Engineer does at AngelCom.