• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 141
  • Last Modified:

How to Get Which Administrator role i get in Exchange Server through Management shell

Hello Team,

I am newly administrator in exchange Server, i got the Management shell access. Now i want to know on my id which administrator roles I've been assigned.

What is the command that will tell what access i've been given in Exchange Server

Thanks,
Andy
0
Addy Nadia
Asked:
Addy Nadia
  • 4
  • 4
1 Solution
 
Adam FarageEnterprise ArchCommented:
List out the role groups within PowerShell:

Get-RoleGroup

Open in new window


Find out which group you are in by querying the role group membership:

Get-RoleGroupMember "Organization Management"

Open in new window

0
 
Addy NadiaExpertAuthor Commented:
where i need to put my mailbox name to get which role group i am assigned
0
 
Adam FarageEnterprise ArchCommented:
When you run Get-RoleGroupMember this will list all members, and you should see yourself in the group if you are assigned.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
Addy NadiaExpertAuthor Commented:
but there are lot of administrator. any way i can specifically check my roles assigned
0
 
Adam FarageEnterprise ArchCommented:
Get-RoleGroupMember "Organization Management" | ? { $_.Name -eq "Insert Display Name here"}

that would give you what you are looking for. You can also search other RBAC groups (get-rolegroup) by replacing the "Organization Management" portion above.
0
 
Addy NadiaExpertAuthor Commented:
Is this command will give results of which Rolegroup my account is being assigned.
Suppose my Alias is : Andy, Then where i need to mentioned my name in Command.
0
 
Adam FarageEnterprise ArchCommented:
Get-RoleGroupMember "Organization Management" | ? { $_.Name -eq "Andy"}

So this does two things:

- Pulls the users within the Role Group (RBAC group) "Organization Management" (which is like the Enterprise Admin group for Exchange, full rights to everything)
- the ? is the Where-Object statement, just abbreviated because I am lazy :) It says "Where-Object from Name is Andy". So it will display your name there if you are part of the group. If it returns nothing then you are not apart of that group.
0
 
Addy NadiaExpertAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now