My Profile Photo

duffney.io


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


  1. Setting up a Vyos Virtual Router in Hyper-V

    Applies to: Windows PowerShell 5.0, Windows 10, Windows Server 2016 In this post we’ll be walking through how to setup a Vyos virtual router for a Hyper-V lab. Vyos is an open source virtual router, which allows us to have a separate network for all of our Hyper-V virtual machines and route it’s traffic through our normal private network to the internet. We’ll keep it simple and have only two networks to worry about. One...…


  2. Get Software Icon from an .exe with PowerShell

    Applies to: Windows PowerShell 3.0+ There are a few software applications out there that can extract the .ico image from an executable. However, why would you download and install software for something PowerShell can do for you. This fucntion Get-Icon will do exactly what the name leads you to believe, which is getting a .ico file from a .exe file. It will also name the .ico the same name as the .exe, just with a...…


  3. Copying SQL Tables with PowerShell

    Applies to: Windows PowerShell 3.0, Windows PowerShell 4.0, Windows PowerShell 5.0, SQLCmdlets Module 1.0 When working with SQL there might be a time where you want to move all the data in a table to a new database. This process is simple with Standard and up versions of SQL because they provide a tool for you. If you are using SQL express however that tool doesn’t exist. In this blog post we’ll be walking through...…


  4. Setting up an HTTP Pull Server for DSC

    Applies to: Windows PowerShell 5.0 In this blog post, we’ll be walking through how to setup and configure an HTTP pull server for Desired Stat Configurations. HTTP is only one of the three pull methods, the other two are SMB and HTTPS. It is not recommended you setup HTTP for production, but will work for a Lab without having to configure PKI (public key infrastructure). Belows lists the steps we’ll take to accomplish setting up...…


  5. Disable ADComputer in Action

    Applies to: Windows PowerShell 3.0+ Cleaning up Active Directory isn’t something every organization does or does well, but it’s very important. For semi obvious reasons it’s best practice to disable computers after X amount of days and is part of any System Administrators job. The script in this blog post will help automate the disabling and moving of objects to a specified OU. This task is fairly easy to script out within a simple foreach...…