PowerShell tricks: Splatting

The short story about splatting is that you can use it to pass parameters to cmdlets, instead of the traditional syntax. On most cases, the usual way of working with cmdlets is fine but when you start to get a really complicated line it can get pretty annoying to keep…

Adding CAA record in Azure with PowerShell

CAA (Certificate Authority Authorization) is a DNS record that lets you define what Certificate Authority that is allowed to represent you and your servers. Complex topic, not the scope of this blog post. If you are interested in the details of CAA, I recommend you read RFC6844. However, what I…

Running PowerShell Core in a container

Creating PowerShell modules is fun, rewarding and a great way to learn more PowerShell. But when you want to test your code, you want to run it in a clean environment to make sure that you don’t have anything interfering with your awesome module. It would suck to get…