My Profile Photo

duffney.io


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


  1. Windows Event Forwarding for Active Directory Security Logs with DSC

    In this post, I will be teaching you how to configure Windows Event Logs Forwarding for Active Directory Security Logs that are stored on Domain Controllers. This is a real world example of how to use DSC in your environments and showcases the benefits of using DSC. If you are not currently using some logging system, I highly encourage you take the lessons learned here and use them to build a simple logging solution. In...…


  2. Creating Lab Environments with LabBuilder

    Applies to: Windows PowerShell 5.0, Hyper-V Stop testing in production! You’ve been hearing that for a while now, and so had I. However, I continued to do it. Mainly in part because I was too lazy to setup the required infrastructure to simulate my production environments. Let’s face it, most of us won’t be able to mirror our production environments. Given the choice I’d nuke my production environments and start over. Accepting the fact that...…


  3. Create Scheduled Tasks with Secure Passwords

    Applies to: Windows PowerShell 3.0,4.0,5.0 While writing the DSC configuration for some Jenkins slaves, I discovered the Register-ScheduledTask cmdlet only accepts string variables. This forced me to store my service account password as clear text, which made me cringe. I knew there had to be a better way, even if the cmdlet did not allow a credential object to be passed to it. In this post you’ll learn how to extract the password from a...…


  4. CovertTo MofInstance Certificate Cannot be used for Encryption

    Applies to: Windows PowerShell 5.0 You probably ran into this error while using a Windows 10 or Windows Server 2016 Technical Preview when attempting to encrypt DSC configuratiosn, as I did. For some reason, the certificates I had been using no loneger worked. When I attempted to ecnrypt my DSC configurations I got the above error saying the the function ConvertTo-MofInstance failed and that the certificate that I was using could not be used for...…


  5. Configuring an HTTPS Pull Server for Desired State Configuration

    Applies to: Windows PowerShell 4.0, Windows PowerShell 5.0 This blog post will guide you through the process of setting up and configuring an HTTPS Pull Server to deploy Desired State Configurations to nodes. It will also walk you through the process of requesting the cert from the CA (Certificate Authority)! That is the main reason I’m taking the time to write the post, almost all the DSC training I’ve watched skips that step and leaves...…