Deploy VMs using Templates, customisation specs and POWERCLI

Who doesn’t love a bit of automation these days, I certainly like to use code snippets and shortcuts whenever I can.  Recently I’ve been deploying some VMs in my homelab and thought I would share some of the POWERCLI I use. I have a Windows 2016 template stored in vCenter that I have recently patched and tweaked to my satisfaction and deploy that with a temporary customization spec to deploy and do the initial config (IP settings and domain join). The key commands to use here to get the IP settings are Get-OScustomizationNicMapping Set-OSCustomizationNicMapping Only started playing with these recently...