Created
August 18, 2015 16:28
-
-
Save turibbio/80d5f6e8255c39d468ad to your computer and use it in GitHub Desktop.
Write-Host vs Write-Output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Write-Messages | |
{ | |
[CmdletBinding()] | |
param() | |
Write-Host "Host message" | |
Write-Output "Output message" | |
} | |
# Run with: | |
# Write-Messages | Out-File C:\Temp\log.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment