Change Password in Office 365 via Powershell

These are instructions on how to manually change a password for an account in 365 via Windows Powershell. This is the only way to set a password specifically to something you want. Otherwise, when you reset a password through the Exchange Admin Center, it will randomly choose one for you.

Change 365 Password Instructions

The first thing you will need is the Windows Azure Active Directory Module for Windows PowerShell to connect to 365. It can be downloaded here:

Step 1

The first thing you will need to do is enter in your 365 credentials.

$msolcred = get-credential


Step 2

Now we need to connect.

connect-msolservice -credential $msolcred


Step 3

Now you can choose the password and user you want to change, simply edit and TheNewPassword.

Set-MsolUserPassword -UserPrincipalName -NewPassword TheNewPassword

If the above information helped you, make sure to check out our official Office 365 Migration Guide.

You may also like:

Migrate email to Office 365 using WHM If you are like me, then you are simply wanting to migrate your email over to Microsoft Office 365 to take advantage of Exchange. Me and my colleague ...
Office 365 – “This message could not b... Error Message: This message could not be sent. Try sending the message again later, or contact your network administrator. Error is [0x80070005-000000...
TheITBros Microsoft Office 365 Migration Guide We just migrated a company to Microsoft Office 365 and we thought we would share our experience and troubleshooting tips. We hope this saves you some ...
Grant Full Access to All Mailboxes in Exchange 200... This is a short tutorial on how to add full access to all mailboxes in Exchange 2007 and 2010 for a an additional user. This can come in handy when sa...
Add Calendar Permissions in Office 365 via Powersh... This is a tutorial on adding calendar permissions in Office 365 for your users via Powershell. You can add permissions onto a specific mailbox, or you...
READ ALSO  Search Office 365 Wave 15 by License Type