Contact Info

Crumbtrail

ActiveXperts.com » 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 »

Out-Host

Description
Send the pipelined output to the host

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

Options
-paging 
       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.

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

Example(s)
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