Microsoft Office 365 – Configure a User Password to Never Expire

This article will show you how to configure a user password to never expire on the Office 365 platform.

Install the PowerShell cmdlets for Office 365

First you will need the PowerShell cmdlets installed onto your computer. To install them, please follow the instructions here:

Set Windows Powershell Credentials


To connect Windows Powershell to Office 365, run the following cmdlet from the Powershell window (which you installed in the above step).

After running that command, you will get a login window. Type in an “admin” level user for Office 365 (in the format of and select “Ok”.

Connect Windows Powershell to Office 365


Next, run the following cmdlet:
connect-MSOLService -credential $cred
If it connects successfully, no messages will be should be shown, just a new line as shown in the above screenshot.

If You Get an Error . . .


If the credentials you’ve provided are incorrect, you will get a screen like the one above. If this happens, check your credentials and re-run the cmdlets above.

Find Out Whether a Password is Set to Never Expire


To see whether a single user’s password is set to never expire, run the following cmdlet by using the user ID (in the format of of the user you want to check:
Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires

The result of the cmdlet will show if this flag has been set or not for this user. An example of this can be seen in the above screenshot. For this particular user, it has not been set.

Optional — To see the “Password never expires” setting for all users, run the following cmdlet:
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires

Set a Password to Never Expire


To set the password of one user to never expire, run the following cmdlet by using the user ID of the user (in the format of
Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $true

Optional — To set the passwords of all the users in an organization to never expire, run the following cmdlet:
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

Set a Password to Expire (To Undo Above)

To set the password of one user so that the password does expire, run the following cmdlet by using the user ID of the user:
Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $false

To set the passwords of all users in the organization so that they do expire, use the following cmdlet:
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $false

Microsoft Word 2010 – Make Only 1 Page in Landscape Layout While Keeping Rest in Portrait Layout

I don’t know why this was “new” for me, but it did take a google search to figure it out. Here’s a great link that explains how to make only 1 page within Microsoft Word 2010 in a landscape layout, while keeping the rest in the portrait layout.

Copied below for reference:

Go to the last page you want to keep vertical (Portrait) then select Page Layout | Breaks | Next Page.

enter image description here

Now click anywhere in the page where you want to have the horizontal page (Landscape) and go toPage Layout | Orientation and select Landscape

Do the same steps for the following page, the one after the landscaped one, but this time choosePortrait. Only do this if you want to restore the Portrait orientation back to normal.

enter image description here