?
Solved

Problem with PoweShell command

Posted on 2013-01-25
2
Medium Priority
?
531 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
imkottees earned 600 total points
ID: 38821496
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
ID: 38837947
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
This video discusses moving either the default database or any database to a new volume.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

741 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