Solved

Problem with PoweShell command

Posted on 2013-01-25
2
520 Views
Last Modified: 2013-02-03
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.
0
Comment
Question by:osiexchange
2 Comments
 
LVL 13

Accepted Solution

by:
imkottees earned 200 total points
Comment Utility
you have to use like this..

Get-ManagementRoleEntry -Identity "databases\*"

you can refer this..
http://myexchangelink.wordpress.com/2012/03/16/creating-custom-permission-using-rbac/
0
 

Author Comment

by:osiexchange
Comment Utility
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.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now