On a slight deviation from my normal PowerShell-laced goodness, now it’s time to discuss another one of my passions: Dungeons & Dragons.
Virtual Hard Drives are the nuts and bolts of Virtualized Servers. This includes Linux Servers, but converting the hard drives provided some interesting findings.
So, I normally need to build a Lab for my SolarWinds Orion. If I’m doing this on my own machine and don’t have the luxury of a Windows Deployment Server (WDS), and I’ve built a custom hard drive for my Windows Servers, then I use a PowerShell script to do this work for me. (Seeing a pattern here?)
This may not be the “official” way to create a template for Hyper-V according to Microsoft, but if you are running in an environment without SCCM or WDS (or on your personal machine), I’ve found that this process works very well.
This is fairly simple list of tasks, but it’s very long. Thankfully, you’ll only need to do this once and then you can re-use the image as many times as you like. I update mine once a quarter (to get the newest updates).
Tweak where it’s appropriate for your build.