Link to home
Start Free TrialLog in
Avatar of osiexchange
osiexchange

asked on

Problem with PoweShell command

This should be an easy one for all you PS gurus. I am running the command below to try and export to a csv file a Management Role Entry and all the associated parameters with that entry.

Get-ManagementRoleEntry *\set-mailbox |export-csv c:\setmailbox.csv

The problem is there are so many parameters, they get truncated with a .... in the PS window and when I pipe the output to a file, it doesn't show any of the parameters at all. The column just says Microsoft.Exchange.Collections.ReadOnlyCollection`1[System.String]

I am just thinking there is too much to output so it just puts that in its place. What I am trying to do here is just find out all the parameters associated with the role entry set-mailbox as it applies to the Role Mail Recipients so I can create a custom role entry to added to a new role group I wish to create.
ASKER CERTIFIED SOLUTION
Avatar of Kotteeswaran Rajendran
Kotteeswaran Rajendran
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of osiexchange
osiexchange

ASKER

This command produces the same results. Is there any way to export to a csv file so that it does not truncate the output? If you run this command, under the Parameters column, there are several listed for each role entry and then it just truncates the rest with a series of dots.