Solved

Problem with PoweShell command

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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.
Read this checklist to learn more about the 15 things you should never include in an email signature.
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

770 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