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



411 University St, Seattle, USA


+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





Download the Windows Azure AD Powershell from here




Install Microsoft Online Services Sign-in Assistant




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

Is It Time to Migrate from G Suite to Microsoft 365?

Google’s G Suite (now called Google Workspace) and Microsoft 365 are the major productivity software players competing for attention, and both are worthy of consideration for entirely different reasons. However, many companies eventually leave the startup phase and outgrow G Suite. This is when you know it’s time to migrate to Microsoft 365.

The Importance and Features of KnowBe4

In light of OpenAI’s viral ChatGPT platform, users worldwide are leveraging the tool to accomplish tedious tasks, improve their workflows, or just have fun. We look at how AI tools like ChatGPT function, and then we’ll review some positives and negatives when it comes to using it at your place of work.