Whenever I create a new Windows Server  2016 or 2019 Virtual Machine (VM) template for customers, I mostly add the BgInfo tool in the base image (also called golden image) and set it so it starts up automatically whenever a user logs on to the server. To automate this process, I wrote a PowerShell script which does all of the following:

More information about the script can be found on my blog: https://wmatthyssen.com/2019/09/09/powershell-bginfo-automation-script-for-windows-server-2016-2019/