Author: Matthew Dowst

PoshBytes

PoshBytes: Write-Host vs Write-Output

Write-Host vs Write-Output: What’s the Difference? In PowerShell, Write-Host and Write-Output are often mistaken for interchangeable commands.  This post is a companion for the video embedded below. Scroll down to see the code from the video. Side-by-Side Comparison Write-Host "Hello from Write-Host" Write-Output "Hello from Write-Output" At first glance, they both display text to the screen. However: Write-Host sends output directly...
General

Display Profile Functions

If you are like me and have multiple machines you work on with different profiles, it can be difficult to remember which profile contains which functions. So, I wrote a quick function that will display all the functions for me on start up. Just add the code below to the bottom of your $profile file. Function Get-ProfileFunctions { $__ProfileFunctions =...