change-365-password

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:
http://technet.microsoft.com/en-us/library/jj151815.aspx

Step 1

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

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

365-get-credentials

Step 2

Now we need to connect.

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

365-msolservice

Step 3

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

[vb]Set-MsolUserPassword -UserPrincipalName user@domain.com -NewPassword TheNewPassword[/vb]

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 . 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 ...
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...
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...
READ ALSO  How to Fix Exchange Server Error 00002098