My Profile Photo

duffney.io


DevOps Engineer | Pluralsight Author | Speaker | Blogger | PowerShell Advocate


  1. PowerShell Story Continued Becoming a Craftsman

    My journey started off by figuring out how to automate a daily disk space report on the mailserver, which ran most of the company, and emailing the report to my boss at the time. After PowerShell sent that first email, something clicked. I sat back in my chair and thought to myself, “Wow, I don’t have to do this anymore”. I can still feel how exciting and relieving that thought was. Fast forward a few...…


  2. Setting up Windows for Docker Container Development

    Containers are here! and if you haven’t already used them I highly recommend you start even if it’s for lab only environments. I say this for a few reasons the most important being it will advance your career. Containers are going to be the way forward if that isn’t clear enough from all the buzz going around for the past few years. Another equality good reason you should start messing around with them is it’s...…


  3. Using Desired State Configuration (DSC) Composite Resources

    Table of Contents Table of Contents Understanding Composite Resources DSC Without a Composite Resource Creating Composite Resources Using Composite Resources Adding Properties to a Composite Resource Summary Composite resources can be thought of as help functions, but instead of helper functions for your PowerShell scripts it’s a helper resource for your DSC configurations. They help solve the same problem helper functions do by modularizing your code. Which reduces the length and complexity of your code....…


  4. Getting Started with Invoke-Build

    Table of Contents Table of Contents What is InvokeBuild? PowerShell Module Development Workflow Creating The InvokeBuild Script Creating the Install Dependencies InvokeBuild Task Adding Linting with PSScriptAnalyzer Testing the Code with Pester Updating the Module Manifest Generating an Artifact Sources What is InvokeBuild? Invoke-Build is a build automation tool written in PowerShell. What does that mean? Well, just like anything written in PowerShell the purpose of it is to automate something and in this case...…


  5. Using Module Versions with Invoke-DscResource

    Invoke-DscResource is a cmdlet available in PowerShell version 5 and above. It allows you to run a Dsc resource method without having to generate a mof document or even write a configuration document. In this blog post you’ll learn how to use a ModuleSpecification to tell the cmdlet which version of a resource module to use. Why would you need to do that? By default, the cmdlet will use the latest version of the resource...…