Thoughts On When To Use – Write-Host, Write-Output, Write-Debug, Write-Warning, Write-Verbose & Write-Error/Throw

PowerShell has matured as the automation tool of choice on the Microsoft platform, be it on Windows or Azure. However, there is no official guidance on best-practices and standards around some things. At times, bloggers do things incorrectly in their examples thereby reinforcing bad practices. Hopefully, this small post will help connect some dots for you! Please … Continue reading Thoughts On When To Use – Write-Host, Write-Output, Write-Debug, Write-Warning, Write-Verbose & Write-Error/Throw

Advertisements

PowerShell: Read-Host On Steroids – Enhancements To Jeff Hicks Version

A better Read-Host - by Jeff Hicks Read-Host is very useful but it is too simplistic to write "good" code using it. Jeff Hicks (Twitter: @JeffHicks, Blog: jdhitsolutions.com/blog/)  who needs no introductions in the PowerShell world (and whose books I read to learn PowerShell), created a better Read-Host. I love his version. Please checkout the nice … Continue reading PowerShell: Read-Host On Steroids – Enhancements To Jeff Hicks Version