Solved

Exchange PowerShell Output formatting?

Posted on 2014-03-12
2
547 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 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