Comments posted to this topic are about the item Stairway to SQL PowerShell Level 3: Input and Output with PowerShell
Laerte Poltronieri Junior-367636
Hall of Fame
Just a complementar information about write-output and write-host.
Write-output writes the output to the pipeline (what you should want to do it, since powershell is a object-oriented shell).
Write-host takes all the data 'out'of the the pipeline and dumps to the out-host and, consequentelly, nothing goes to the pipeline. Basically what write-host does is [console]::writeline()
Viewing 2 posts - 1 through 1 (of 1 total)