How to get Exchange Service administrators on Office 365 using Powershell

In this article, We will show you how to get Exchange Service administrators using Powershell.

First, you need to connect Msol Service using Connect-MsolService,

if you run the commend, Get-MsolRole command, You will get all the administrator Roles, Wherein you will not get how many members are part of that particular service administrator Role.


So , You need to run the below command to get the Members

$role = Get-MsolRole -RoleName “Exchange Service Administrator”

Get-MsolRoleMember -RoleObjectId $role.ObjectId


You also can use the same trick to get for other services like SharePoint Service administrator,

$role = Get-MsolRole -RoleName “SharePoint Service Administrator”

Get-MsolRoleMember -RoleObjectId $role.ObjectId



Leave a Reply

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