concept host in category powershell

appears as: host, hosts, The host, Host, hosts
Learn PowerShell in a Month of Lunches

This is an excerpt from Manning's book Learn PowerShell in a Month of Lunches.

Whenever you have nicely formatted output—for example, the tables generated by Get-Command or Get-Process—you may want to preserve that in a file or even on paper. Normally, cmdlet output is directed to the screen, which PowerShell refers to as the host, but you can change where that output goes. We’ve already showed you one way to do so:

  • Out-Default passes the objects to Out-Host, because the PowerShell console is designed to use the screen (called the host) as its default form of output. In theory, someone could write a shell that uses files or printers as the default output instead, but nobody has that we know of.
  • Windows PowerShell in Action, Third Edition

    This is an excerpt from Manning's book Windows PowerShell in Action, Third Edition.

    You also need to ensure that the Linux and Windows machines can find each other on the network. Either ensure that your DNS contains entries for all relevant machines or add appropriate entries to the hosts file on your machines.

    PS> Get-Command Out-* | Format-Wide -Column 3
    
    Out-Default       Out-File       Out-GridView
    Out-Host          Out-Null       Out-Printer
    Out-String

    If you use these cmdlets as shown in the example, you can read and write to and from the host, and the remoting subsystem will take care of making everything work.