Copy files with hash difference via PowerShell
This blog post details a PowerShell Core compatible cmdlet that I have authored named Copy-FileHash that you can use to copy modified files from one path tree to another. The cmdlet determines which files have different contents by calculating their hash values through the Get-FileHash cmdlet. This might be useful…
Adding a code coverage badge to a PowerShell project
This blog post describes how you can add a code coverage badge to the readme.md of your PowerShell projects in Github as well as have them automatically updated with the current coverage percentage via your Continuous Integration pipeline (if you've implemented one). "Code coverage" (or test coverage) is the…
Watch for changes with PowerShell
I recently needed to make a change to the membership of an Active Directory group which was enforced via Puppet. While waiting for the Puppet manifest to apply I used Get-ADGroupMember in PowerShell to check if the change had taken effect. Finding that it had not, I then wrote a…
Keep PowerShell Core updated on Windows with Chocolatey
PowerShell Core is the cross-platform version of PowerShell that runs on Windows, Mac and Linux. If you are not familar with it, check out my previous blog post on the topic. It's likely that PowerShell Core will see more regular releases than we've had historically with Windows PowerShell. While you…
How to create a Grafana metrics dashboard via Influx and PowerShell
This blog post describes how you can use the open source tools Influx and Grafana along with a PowerShell module I've authored on Windows to create and populate interactive metric and monitoring dashboards like this one: (-- note that all the graph labels and legends from the above screenshot have…