New-ManagementRoleAssignment

suelizy
suelizy used Ask the Experts™
on
I want to run New-ManagementRoleAssignment and assign 2 roles.  I am trying this:

New-ManagementRoleAssignment -Name "NAME" -SecurityGroup "GROUP" -Role "ROLE1","ROLE2"

It fails with:  Cannot process argument transformation on parameter 'Role'. Cannot convert the "System.Collections.ArrayList" value of type "System.Collections.ArrayList" to type "Microsoft.Excha

Anyone know how to do this?

Thanks!

Susan
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Role is which role you want to assign.
Check for get-rolegroup.

You have to create a new rolegroup and then you can assign the roles.

This can be done through http://servername/ecp or https://servername/ecp

Author

Commented:
Are you saying that you cannot assign 2 roles, instead I need to create a role group that contains those 2 roles and then assign that role group?

Thanks!

Susan

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial