4
Reply

What is Write-Host in Powershell

Abhay Shanker

Abhay Shanker

11y
5.1k
0
Reply
    Write-Host is what Console.WriteLine for you in C# console application i.e. which allows you to write your output on Console.
    http://technet.microsoft.com/en-us/library/ee177031.aspx
    http://stackoverflow.com/questions/8755497/which-should-i-use-write-host-write-output-or-consolewriteline

    The Write-Host cmdlet enables you to write messages to the Windows PowerShell console.

    Write-Host "Hello World"