Contact Info

Crumbtrail » Administration » Powershell » Powershell 1.0 » Out-Host

Out-Host - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Send the pipelined output to the host

Out-Host [-paging] [-inputObject psobject] [CommonParameters]

       Display one page of output at a time, and wait for user input before 
       displaying more. By default, all output is displayed on a single page. 
       The page size is determined by the characteristics of the host.

   -inputObject psobject
       The object to be written to file. {may be piped}
       A command, expression or variabale that contains the objects.

       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Display system processes one page at a time:

PS C:\>get-process | out-host -paging

Display a snapshot of the session history at the command line:

PS C:\>$a = get-history
PS C:\>out-host -InputObject $a