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...
How to copy files with BITS using PowerShell If you use local (and global) networks, you might know that files between systems are transferring by using SMB, FTP or HTTP protocols. The problem wi...
Removing Old and Unused Drivers from Driver Store ... Each time you install or update your device driver, Windows OS (since Vista) continues to store the old version of the driver in the system Driver Sto...

Add Your Comment