Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

how to pause output in exchange managment shell

How do I pause output for running:
Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}},ItemCount

I can't scroll up to the top.
0
mleblanc33
Asked:
mleblanc33
1 Solution
 
neptuneitCommented:
Just pipe the more command into it. For instance:  

Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}},ItemCount | more 

Open in new window


That will slow it down to one screen at a time

Unfortunately this wont allow you to scroll but it will control the flow of the output so you can see all of it.

Also try exporting it to a txt or csv file.
0
 
Mark GalvinManaging Director / Principal ConsultantCommented:
Hi

What you need to do here is increase the buffer size of the window. Right click the PowerShell Icon in the top left and select Properties. Then go to the Layout tab and increase the Height of the Screen Buffer Size. I have mine set to 3000. This will allow you to scroll up. If 3000 is not enough for your task increase it.

Thanks
Mark
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now