skip to Main Content
{ICT | Office 365 | Microsoft Teams | Surface} Perth, WA

Bulk Change or Reset Passwords in Office 365

When you create new users in Office 365, a password is automatically created for each user.

You may want to use existing passwords, or set, reset or change passwords according to your rules. Fortunately there is a quick way of achieving this with PowerShell – you do not need to change each user individually!

The users will need to exist in Office 365 – so create them first, then follow these steps to set their passwords.

Step 1

If you haven’t already, you will need to install the Windows Azure Active Directory Module – see here for details:

Step 2

Open the Windows Azure AD Module and connect to your online service:
[box ]connect-msolservice[/box]

Step 3

Create a CSV file with columns UPN and NewPassword, and save on your comuter, e.g. c:\password.csv.

Step 4

Run the following command to reset the passwords for all users listed in the file c:\password.csv:

[box ]Import-Csv c:\password.csv|%{Set-MsolUserPassword –userPrincipalName $_.upn -NewPassword $_.newpassword -ForceChangePassword $false}[/box]


Do you want to quickly set the same password for all users?

Download a CSV listing your current users:

[box ]Get-MSOLUser | Select UserPrincipalName|Export-Csv password.csv[/box]

Run the following where Welcome1 is your default password:

[box ]Import-Csv c:\password.csv|%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName -NewPassword Welcome1 -ForceChangePassword $false}[/box]
Think about your landing page

If you are setting up Office 365 for the first time, you may want to consider what URL you give users to log onto. You may choose to direct them to your SharePoint page or to SkyDrive or Outlook – as the default page could be confusing!

Get started with Office 365


Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top
×Close search