Hi all,
I want to remove all of the role entries of a custom management role. For example, I create a role:
New-ManagementRole -Name 'test1' -Parent 'Mail Recipients'
Then, I want to remove all of the role entries in this role. Here is what I tried:
Get-ManagementRoleEntry "test1\*" | Remove-ManagementRoleEntry
I got the following error message:
======================
Parameter name: identity"
+ CategoryInfo : InvalidData: (test1:PSObject) [Remove-ManagementRoleEntry], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Remove-ManagementRoleEntry
=========================
Can someone help about the PowerShell script to achieve the goal?
PS1: It's in Exchange 2013 (I remember I encountered the same issue in 2010)
PS2: I don't have enough permissions. In other words, I cannot create a unscopedtoplevel management role. What I can do is to remove all of the role entries in the children role.
TIA