How to create a composite PowerShell DSC resource

A composite resource allows you to create a single PowerShell DSC configuration with references to several “non-composite” resources and share it across multiple machines. Desired State Configuration (DSC) is an amazing technology. It’s an efficient and convenient way to define what a system should look like and run a configuration. This magic is built upon resources that are combined to […]

Read more

Working with infrastructure dependencies in Pester

As you begin building integration tests for your PowerShell scripts, you’ll inevitably run into a situation in which you have infrastructure dependencies. Infrastructure dependencies are anything that must be set up in an environment before you can actually perform a test, such as bringing up an entirely new VM to test, installing some software, or creating an Active Directory account […]

Read more

The story of a ‘System frickin’ Administrator, not developer, you hear me?’

This is the start of a new series entitled: System Administrator to Developer. It will be told as a fictional story of Joe Schmoe and will cover Joe’s realization that DevOps is where his career needs to go. This is the first post in this series that introduces our friend Joe and how he first gets introduced to DevOps the hard […]

Read more

Windows Performance Counters: Getting Started

When a Windows server is running as expected, no one notices. But as it begins running low on resources, a system administrator typically finds out quickly just how important that server is. Performance suffers and Windows performance counters can help. It’s important for admins to track resource utilization over time and get alerts on when resources such as CPU, disk, […]

Read more

PowerShell Pester assertions – Testing with the should command

Pester is a framework for PowerShell that allows you to test your PowerShell scripts. With the help of known assertions that are implemented via the should command, you can test whether an object has the expected value. A task that software developers have become used to over many decades but one that recently come to light for PowerShell scripters is […]

Read more
1 2 3 32