{"id":119,"date":"2015-03-16T22:27:44","date_gmt":"2015-03-16T11:27:44","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=119"},"modified":"2022-11-14T20:05:45","modified_gmt":"2022-11-14T09:05:45","slug":"how-to-set-password-to-never-expire-in-office-365-small-business","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-set-password-to-never-expire-in-office-365-small-business\/","title":{"rendered":"How to Set Password to Never Expire in Office 365 Small Business"},"content":{"rendered":"<p>Whilst setting passwords to never expire can be easily achieved in Office 365 Medium and Enterprise levels using the GUI backend, doing the same in Office 365 Small Business is not as easily achieved due to removing many of the advanced features from the GUI. \u00a0There is away around this however. \u00a0It involves using Powershell which really isn&#8217;t for the average end user but if you&#8217;re managing this for a client it&#8217;s fairly easy to accomplish.<\/p>\n<p>After <a title=\"How to Connect to Office 365 Exchange Online using Remote Powershell\" href=\"https:\/\/4it.com.au\/kb\/article\/how-to-connect-to-office-365-exchange-online-using-remote-powershell\/\">logging in using Windows Azure Active Directory Module for Windows Powershell<\/a>\u00a0run the following command:<\/p>\n<p><code>Connect-MsolService<\/code><\/p>\n<p>and re-enter your username and password if prompted<\/p>\n<h3>Check Password Expiration &#8211; Organisation<\/h3>\n<p><code>Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires<\/code><\/p>\n<h3>Check Password Expiration &#8211; Individual User<\/h3>\n<p><code>Get-MSOLUser -UserPrincipalName exampleuser@organization.com | Select PasswordNeverExpires<\/code><\/p>\n<h3>Set All Passwords Never To Expire<\/h3>\n<p><code>Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true<\/code><\/p>\n<h3>Set Individual User to Never Expire<\/h3>\n<p><code>Set-MsolUser -UserPrincipalName exampleuser@organization.com -PasswordNeverExpires $true<\/code><\/p>\n<h3>Set All Users to Expire<\/h3>\n<p><code>Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $false<\/code><\/p>\n<h3>Set Individual to Expire<\/h3>\n<p><code>Set-MsolUser -UserPrincipalName exampleuser@organization.com -PasswordNeverExpires $false<\/code><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Whilst setting passwords to never expire can be easily achieved in Office 365 Medium and Enterprise levels using the GUI backend, doing the same in Office 365 Small Business is not as easily achieved due to removing many of the advanced features from the GUI. \u00a0There is away around this however. \u00a0It involves using Powershell [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[7,45],"article-tag":[50,49],"class_list":["post-119","article","type-article","status-publish","format-standard","hentry","article-category-office-365","article-category-remote-powershell","article-tag-exchange-online-password-expiry","article-tag-office-365-password-expiry"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":2,"sum_votes":8},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/119\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=119"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}