Solved

Problem with PoweShell command

Posted on 2013-01-25
2
529 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In-place Upgrading Dirsync to Azure AD Connect
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

726 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