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.

1

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

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

Get-MsolRoleMember -RoleObjectId $role.ObjectId

2

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

3

#exchangeOnline #Msol #MsolRole

Leave a comment

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