?
Solved

Exchange PowerShell Output formatting?

Posted on 2014-03-12
2
Medium Priority
?
570 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 1400 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 600 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

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…
New style of hardware planning for Microsoft Exchange server.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

777 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