The following README will guide you on how to create a Windows Server 2019 VMware vSphere virtual machine template.
Note: This guide assumes that you have some VMware vSphere familiarity and you have knowledge on how to install Windows Server. It is also does not designed to go over either VMware and/or Windows best-practices.
-
VMware vSphere 6.5 and above
-
Although it can be used locally, for faster deployment, it is recommended to upload the file to a vSphere datastore or to vCenter Content Library.
Make sure to select Microsoft Windows Server 2016 or later (64-bit) as the Guest OS.
Point to the Ubuntu Server ISO file location.
Power-on the VM and start the Windows Server installation.
Before converting the VM to a template, few actions needs to be taken.
- Install VMware Tools & Restart
-
Perform Windows Updates
-
Change Powershell Execution Policy to "bypass" by running the
Set-ExecutionPolicy -ExecutionPolicy Bypass
command in Powershell (can be later tuned on via Group Policy or a Powershell script). -
Allow WinRM communication to the OS buy running the allow_winrm Powershell script.
-
None of the below are mandatory but should be considered for a Windows Template:
-
Disabling User Account Control (can be later tuned on via Group Policy or a Powershell script)
-
Turn off Windows Defender FW (can be later tuned on via Group Policy or a Powershell script)
-
Disabling Internet Explorer Enhanced Security Configuration (ESC) (can be later tuned on via Group Policy or a Powershell script)
-
Enable Remote Desktop
-
In Powershell, install Chocolaty
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
-
Install all baseline apps you may want to include in your template.
-
Reduce the CPU & Memory resources, switch the CD/DVD drive to client device as well disconnect it and convert the VM to template.