PowerTip: Display PowerShell Information One Page at a Time

Summary:  Use the More function to display Windows PowerShell information one page at a time.


Hey, Scripting Guy! Question How can you cause Windows PowerShell to easily display information one console screen at a time?

Hey, Scripting Guy! Answer Use the More function:

            Get-Command –Command cmdlet | select name, module | more


Hey, Scripting Guy! Question Wow, the More function is cool. Can I use that inside the Windows PowerShell ISE?

Hey, Scripting Guy! Answer No. You can only use the More function inside the Windows PowerShell console.


Hey, Scripting Guy! Question By the way, how did you know that More was a function, not a cmdlet or a native command?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet:

           Get-Command more

Comments (5)

  1. Cisco4 says:

    Instead of more, I prefer using the out-host -paging command.

    Avantage is that you don't have to wait for powershell to execute the whole command and wait to display.

    This is useful for huge outputs.

    for ex : Measure-Command {Get-Command -Command cmdlet | select name, module | more} –> 291ms

    Measure-Command {Get-Command -Command cmdlet | select name, module | out-host -paging} –> 118ms

  2. Jennifer Middleton says:

    I agree with Cisco.  Note that out-host -paging has the same limitation as more within the ISE.  If you try, you get the following error:

    out-lineoutput : The method or operation is not implemented.

       + CategoryInfo          : NotSpecified: (:) [out-lineoutput], NotImplementedException

       + FullyQualifiedErrorId : System.NotImplementedException,Microsoft.PowerShell.Commands.OutLineOutputCommand

  3. RG says:

    This doesn't make sense.

    PowerShell ISE is the preferred tool used for interactive scripting and execution.  Modify a script, get help on a new command, etc.  Here I want to use host paging (a la 'more' functionality) to read the pages of documentation.

    With Powershell console, I use to simply execute a well-known script, typically non-interactively.  Here, I would rarely require paging of the console output.

    Can you suggest a workaround or fix?

  4. cam99 says:

    I was using the ISE to write scripts and needing to read the help at the same time. So continually scrolling up to get back to the start of the help file. This gets old quickly. I found the following command to have the help open in a new independent window.

    Get-help get-service -showwindow

    If you run it from the script window you get to see all 3 displays at once

Skip to main content