This repository contains PowerShell scripts designed to automate and simplify the process of creating Hyper-V VM templates.
The goal is to save time, reduce errors, and ensure consistency by eliminating the need for repetitive configuration changes and performance tweaks.
Since I perform extensive research and testing, I often work with a variety of virtual machines (VMs) that are built and rebuilt frequently. As a result, I primarily deploy them from a pre-configured template (base or golden image).
Currently, this repository includes the following PowerShell scripts:
-
Deploy-BgInfo-WS2012-R2.ps1
More information about this script used to deploy BgInfo on a Windows Server 2012 R2 can be found on my blog: https://wmatthyssen.com/2019/09/11/powershell-bginfo-automation-script-for-windows-server-2012-r2/
-
Deploy-BgInfo-WS2016-WS2019-WS2022-WS2025.ps1
More information about this script used to deploy BgInfo on a Windows Server 2016, 2019, 2022, or 2025 can be found on my blog: https://wmatthyssen.com/2025/04/07/powershell-script-bginfo-deployment-script-for-windows-server-2025/
-
Template_Customization_Windows_Server_2016_2019.ps1
More information about this script used to build a management groups tree structure can be found on my blog: https://wmatthyssen.com/2022/04/04/azure-powershell-script-create-a-management-group-tree-hierarchy/