Posting messages to Slack channel using Windows PowerShell

Download: Send-ToSlack As previously commented I had been exploring the use of Slack and integration with other tools. One use case was to send messages to channels within Slack when certain steps in an automated workflow were triggered and to provide notification of the status upon completion. Therefore, I created a Windows PowerShell function that would … More Posting messages to Slack channel using Windows PowerShell

Scripting Games – December 2015

So here is my submitted entry to the December 2015 Scripting Games Puzzle hosted at PowerShell.org to which comments have been posted on the Wrap Up containing the official answer(s). The challenges presented in this puzzle are described below and to which I detail my approach to solving each one. Split $list into a collection of entries, as you typed them, … More Scripting Games – December 2015

Windows PowerShell Exit Codes, SSIS and the Environment.Exit Method

I was recently compiling a PowerShell script which would be integrated into a SSIS package, depending on the status of the script invocation this would return custom error codes to determine success or failure as part of the package. By default, I would generally use Try/Catch statements and provide and exit code. However, when invoking … More Windows PowerShell Exit Codes, SSIS and the Environment.Exit Method

Exposing a stream around a log file for synchronous writes using Powershell

I was recently looking at streaming output to a log file synchronously in a powershell session to write numerous events for invoking several cmdlets in a script operation. In order to achieve this I was able to leverage the FileStream and StreamWriter classes as well as creating a log function to both write the event … More Exposing a stream around a log file for synchronous writes using Powershell

Waiting on virtual machine Guest OS customization to complete

I recently discovered a blog article from Vitali Baruh on the PowerCLI QE team in regards to waiting for the guest OS customization to complete following a deployment of a virtual machine from a template. http://blogs.vmware.com/PowerCLI/2012/08/waiting-for-os-customization-to-complete.html As Vitali discusses this process can be difficult to determine if this has completed in the guest operating system and if the … More Waiting on virtual machine Guest OS customization to complete