Home >Tips > Office 365 from Scratch >Add user accounts with PowerShell kalmstrom.com site map icon Site map  

Add Users with a PowerShell Script

An Office 365 tutorial by Peter Kalmström

Office 365 logoWhen you add user accounts to Office 365 you can add the users one by one, or import users from a CSV file.

Another method is to add users to Office 365 with a PowerShell script. The general benefits of using scripts are re-usability and consistency. It is easy to make a mistake while typing things in manually. Having a script that does the user account setup, assures that it is done in the same way every time.

In the demo below Peter Kalmström, CEO and Systems Designer of kalmstrom.com Business Solutions, shows how to get started with the PowerShell method. However, you need to know or learn some more about PowerShell to really find this tutorial useful.

Steps to add a user to Office 365 with a PowerShell script:

  1. Download and install the Azure AD Module if you don't already have it on your PC.
  2. Run PowerShell ISE as an administrator.
  3. Connect to the Azure AD which has the Office 365 user accounts.
  4. Create a new user, assign license and add location and user properties.
  5. Press F8 to run the script and add the user. The temporary password will be shown in the object.

Learn more

Office 365 from Scratch cover SharePoint Online from Scratch cover SharePoint Online Exercises cover
SharePoint Workflows from Scratch cover Excel 2016 from Scratch cover SharePoint Flows from Scratch cover

Always the latest news in the kalmstrom.com blog

Follow kalmstrom.com on LinkedIn Facebook, Google+  or Twitter!

back icon next icon

Products Buy FAQ Services Tips Books Contact About Us Blog

Security and integrity

Copyright  Kalmstrom Enterprises AB  All rights reserved