Summary:
In this part, I will create a new VM and Install Windows server 2016, then convert it as a template. This template is the one that will be used for all the virtual servers for the lab, servers such as: Active Directory, SQL Database, vCenter, View Connection, Login VSI, and Launchers. Previously I have worked with Windows server 2012 and everything works just fine, but I think it was a perfect time for an update.
This is part 4 out of 12 of the VDI LAB series. Check out the introduction first.
The ultimate VDI deployment guide (from scratch) with VMware vSphere 6.5 and Horizon View 7.3 – 2018. 😉
1. Prerequisites
- ESXi host previously configured.
- Windows server 2016 ISO file and upload it into the local Datastore.
Important notes
- I am using the evaluation ISO of windows server because this template is for testing purpose and I think the 180 days period will be enough.
- Alos, the server could be rearmed up to 2 times using the following command: slmgr.vbs -rearm
I am trying to keep simple the configuration, due to the server is for different purposes. There are more thing to configure and tune to improve performance, it could be also considered (as needed):
- Select VMware Paravirtual SCSI controller.
- Partition and size the installation disk
- Place page files on a separated disk.
- Change the Firewall (turn off) if necessary
- Set Feedback and Diagnostic Settings to Full
- Add Features as Telnet or others you’ll need.
- Disable the weekly optimize option for disk defragmentation
- Software installation. In my case, only google chrome will be installed.
2. VM Creation from ESXi host
NOTE: I decided to use ESXi Web client for this VM creation, at this point VCSA web client interface could be used as well.
@ ESXi Web Client
- From Navigator, go to Virtual Machines / Create/Register VM
- Select Create a new virtual machine and click Next.

- Name your VM, (like “Win2106_Template”) and select Microsoft Windows Server 2016 (64-bit) as Guest OS version. Click Next.

- Select datastore to store VM and click Next.

- From Virtual Hardware tab, left CPU, RAM and Hard disk by default. (This can be modified later as required) and from Network Adapter 1, change Adapter Type to VMXNET 3.

- Still on Virtual Hardware, select Datastore ISO file and look for the Windows 2016 server ISO.

- From VM Options tab, go to Boot Options and check Force BIOS setup screen like the image below. Click Save.

- Review settings and hit Finish.

3. Windows Server 2016 - Installation
- Power on the VM. The BIOS should appear when starting the VM.

- Go to Advanced tab, hit enter on I/O Device Configuration.

- Disable all serial and parallel ports.

- Go to Exit and choose Exit Saving Changes (or hit F10).
- The VM should boot now with the Windows Setup, left by default (or as the image below) and click Next.

- Click Install now.

- Select Windows Server 2016 Datacenter Evaluation (Desktop Experience). Click Next.

- Accept license terms.

- In "type of installation" select Custom: Install Windows only (advanced).

- Hit Next to install windows on the default drive.

- The installation will start. Will take about 5 min and then the VM will be restarted.

- On "Customize settings", input a password for the Administrator account. Remember to choose a strong password or you’ll get a similar message as the image below. Click Next.

- Finally, Windows welcome page will show up.

4. Windows Server 2016 - VMware tools
@ESXi
- From new VM created, right click on it and go to Guest OS / Install VMware tools. VMware tools ISO will be mounted on the Guest OS.

@VM Guest
- Go to This PC and double click on Drive D: VMware Tools.

- Double click on setup64.

- Follow the VMware Tools Setup, select typical installation, leave everything by default, hit Install and finish.

- After the installation is finished, reboot the server.
5. Windows Server 2016 - Configuration and Tuning
@VM Guest
5.1 Disable Server Manager at logon
- From Server Manager, go to Manage / Server Manager Properties.

- Check Do not start Server Manager automatically at logon and click OK.

5.2 Update the server until no more patches are available.
Note: Keep updating the server regularly in order to have it ready for quick deployment.
- From Server Manager / Local Server, click any of the 3 options related to Windows update.

- From Update status, hit Check for updates.

- Wait for the updates to be downloaded and install them. Go and grab a coffee, this will take a while, more than an hour in my case.
NOTE: Install and repeat until you see no more updates

5.3 Change Time zone
After updates are made and the server is rebooted, let’s change the Time zone. This can truly impact the performance of some tests, especially when working with the active directory. Time zone setup is also important for all the ESXi host in our environment.
- From Server Manager / Local Server, click Time zone.

- Click Change time zone… and well, select according to yours.

5.4 Change computer name
- From Server Manager / Local Server, click on the current computer name.

- From the Computer Name tab, click Change.

- Input the new name for the template and click OK.

- Restart the VM.
5.5 Change System Properties
- Go back to Server Manager / Local Server and click on your new server name. Go to Advanced tab and configure Performance and Setup and Recovery option.

- From Performance click settings, in Visual Effects tab, select Adjust for best performance, click OK.

- Go back to Advanced tab and from Setup and Recovery click Settings and change both “Time to display...” to 5.

5.6 IE configuration
- From Server Manager / Local Server, go to IE Enhanced Security Configuration and click on "On".

- Check Off for both options and click OK. (You might decide only to turn off Administrators).

- Go to IE / Internet Option / General tab and set home page as blank (About:blank).

5.7 Clean up backup updates and logs.
- Clear backups. Run command prompt as admin.
- Use this command: Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase. This took about 15 min for me! (Grab another coffee?)

- Clear all event logs. Run Windows PowerShell as admin.
- Us this command line: Get-EventLog -List | foreach{Clear-EventLog -LogName $_.log}

5.8 Others (important):
- Disable hibernation: Open command prompt as admin and run: powercfg -h off.

- Disable indexing: Right click on (C:), from General tab, uncheck Allow files on this drive to have contents indexed in addition to file properties. Apply also to all subfolder.

- From Windows Explorer / Folder Option / View, check Hidden Items.

- Go to the Network Adapter and disable IPv6.

- Go to Control Panel / Power Options and choose High Performance for power plan.

- Install google chrome.
- Disconnect the ISO files.
- Run Sysprep

- Select options as the image below:

6. Convert VM to a template
@ VCSA
Finally, turn the VM into a template.
Convert template….. Click Yes in the following windows.

Here we’ll have our Windows Server 2016 template!

I dugg some of you post as I thought they were very beneficial invaluable