top of page

How to get Exchange Service administrators on Office 365 using Powershell

Writer's picture: Radhakrishnan GovindanRadhakrishnan Govindan

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

2 views0 comments
bottom of page