Solved

Exchange PowerShell Output formatting?

Posted on 2014-03-12
2
554 Views
Last Modified: 2014-03-13
How can I make the Exchange output of a PS command display in a somewhat organized/readable format in column format?

Get-MoveRequestStatistics "Clark Griswold" | select DisplayName, TotalMailboxSize, TotalMailboxItemCount, BytesTransferred, BytesTransferredPerMinute, ItemsTransferred, RemoteHostName, RemoteCredentialUsername, TargetDeliveryDomain, PercentComplete, Status | Format-Table

Output kind of looks chopped off :

DisplayName  TotalMailbox TotalMailbox BytesTransfe BytesTransfe ItemsTransfe RemoteHostNa RemoteCreden TargetDeliv PercentComp
             Size            ItemCount rred         rredPerMinut         rred me           tialUsername eryDomain          lete
                                                    e                                                                          
-----------  ------------ ------------ ------------ ------------ ------------ ------------ ------------ ----------- -----------
ABC_Clark... 758.2 MB ...          328 221.4 MB ... 31 MB (32...          126 email1.domai... ABC\clark... domain...          45

Is there a way to display on the screen on a better format? or do I have to export to CSV or TXT file?
0
Comment
Question by:GCTTechs
[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 19

Accepted Solution

by:
Raheman M. Abdul earned 350 total points
ID: 39924481
Get-MoveRequestStatistics "Clark Griswold" | Format-Table  DisplayName, TotalMailboxSize, TotalMailboxItemCount, BytesTransferred, BytesTransferredPerMinute, ItemsTransferred, RemoteHostName, RemoteCredentialUsername, TargetDeliveryDomain, PercentComplete, Status  -autosize -wrap
0
 
LVL 70

Assisted Solution

by:Qlemo
Qlemo earned 150 total points
ID: 39924985
The modified code shows some of the options you have: selecting a few column only, use wrap and/or autosize. Format-List helps to sbow a lot of properties for a few objects. But a complete "display" of many properties for a lot of objects can only be managed with CSV or XML output.
0

Featured Post

Does Powershell have you tied up in knots?

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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…

691 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