VMware Horizon – Setup Server 2016 Instant Clone Template – Optimize Windows

Release date: May 26th 2019

Welcome to my VMware Horizon series. In this sub-session I will describe how I optimized my Windows 2016 Server for Instant Clone usage.

After I finished installing applications and agents in my previous session, I’m now ready to optimize the template using, among other, VMware OS Optimization Tool. This can be downloaded from: https://labs.vmware.com/flings/vmware-os-optimization-tool

I will also configure some local group-policies and do some optimization.

 

VMware OS Optimization Tool

When I start VMware OS Optimization Tools for the first time, I check for updates before I proceed. Updates are found under the Public Templates section:

SrvOS4Desktop_OptimizeWindows-01

 

Next, I’ll make a copy of the template I’m going to use, WindowsServer 2016 – Desktop, click “Copy and Edit”, I give a meaningful name, OK

SrvOS4Desktop_OptimizeWindows-02

SrvOS4Desktop_OptimizeWindows-03

 

I select my new template and change %USERPROFILE%\..\Default User\NTUSER.DAT to %USERPROFILE%\..\MANDATORY.V6\NTUSER.MAN.

SrvOS4Desktop_OptimizeWindows-04

 

Next, I analyze which recommended system optimizations to apply

SrvOS4Desktop_OptimizeWindows-05

 

Based on the recommendations from the optimization tool, I run “Optimize”.

SrvOS4Desktop_OptimizeWindows-06

 

Finally I reboot the VM after optimizations are done.

SrvOS4Desktop_OptimizeWindows-07

 

Local Group Policies:

Open Local Group Policies MMC

OptimizeWindows08

 

I edit the following options as follows:

OptimizeWindows-06

 

Disk Cleanup

I start cleanmgr.exe from an administrative cmd-prompt and cleanup up before I run SDelete below

OptimizeWindows-07

OptimizeWindows-08

 

SDELETE

From an administrative cmd-prompt I run “sdelete64 -z c:”

OptimizeWindows-09

 

Finally I run the following commands to finish up the template

OptimizeWindows-10

OptimizeWindows-11

 

That concludes my session about how I optimized my Windows 2016 Server RDS template. My next logical step will be to prepare the template for use with my instant clone pool, covered here: VMware Horizon – Setup Server 2016 Instant Clone Template – Prepare for deployment

 

Recommended reading:

VMware Tech Zone: Creating an Optimized Windows Image for a VMware Horizon Virtual Desktop

 

VMware Horizon – Setup Server 2016 Instant Clone Template

VMware Horizon planning, deployment etc.

Disclaimer: Every tips/tricks/posting I have published here, is tried and tested in different it-solutions. It is not guaranteed to work everywhere, but is meant as a tip for other users out there. Remember, Google is your friend and don’t be afraid to steal with pride! Feel free to comment below as needed.

%d bloggers like this: