Edit multiple Office 365 Users Details Using PowerShell

In this article I’ll show you I’m going to edit modify multiple Office 365 users details using Microsoft Azure PowerShell.

Like always, Before you start, Install the Windows PowerShell Module for Office 365  and connect to Office 365 using PowerShell

Once done, use the cmdlet below to connect to Office 365:

Import-Module msonline

Connect-MsolService

In my case I’m going to change the Department name for all users In Office 365 but before I’ll run the cmdlet below to check the current value:

Get-MsolUser | ft Firstname, department

To change the department name to all users I use:

Get-MsolUser | Set-MsolUser -Department "Cloud Services"


Posted

in

by