Quantcast
Channel: Powershell – TheITBros
Viewing all articles
Browse latest Browse all 91

Change Password in Office 365 via Powershell

$
0
0
change-365-password

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:

Windows Azure Active Directory Module for Windows PowerShell (32-bit version)

Windows Azure Active Directory Module for Windows PowerShell (64-bit version)

Source: 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.

$msolcred = get-credential

365-get-credentials

Step 2

Now we need to connect.

connect-msolservice -credential $msolcred

365-msolservice

Step 3

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

Set-MsolUserPassword -UserPrincipalName user@domain.com -NewPassword TheNewPassword

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

The post Change Password in Office 365 via Powershell appeared first on TheITBros.


Viewing all articles
Browse latest Browse all 91

Trending Articles