Write-Host


Displays objects through the user feedback mechanism.

Snap-In: Microsoft.PowerShell.Utility

Syntax:

Write-Host [

 [-Object] <Object>] [-NoNewline] [-Separator <Object>] [-ForegroundColor <ConsoleColor>] [-BackgroundColor <ConsoleColor>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] 

Description:

There are cmdlets used in scripts and routines that involve feedback from or show information to the user. For example, the write-progress opens a small display window of its own to show the progress of a script activity or process. The write-host Cmdlet presents a new host window and allows it to be customized. It is useful for producing diagnostics in scripts or for scripts that display data to the console rather than have it flow down the pipeline.



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net