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.

[vb]$msolcred = get-credential[/vb]


Step 2

Now we need to connect.

[vb]connect-msolservice -credential $msolcred[/vb]


Step 3

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

[vb]Set-MsolUserPassword -UserPrincipalName -NewPassword TheNewPassword[/vb]

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

You may also like:

Add Calendar Permissions in Office 365 via Powersh... This is a tutorial on how to add calendar permissions in Office 365 for your users via Powershell. You can add permissions onto a specific mailbox, or...
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 . You might be rec...
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...
READ ALSO  Windows Server 2012 Mailbox Role Process Execution Failed Exit Code 15010