Creating An Optimized Windows Image For A Vmware Horizon Virtual Desktop
Creating An Optimized Windows Image For A Vmware Horizon Virtual Desktop
CREATING AN OPTIMIZED
WINDOWS IMAGE FOR A
VMWARE HORIZON VIRTUAL
DESKTOP
VMware Horizon
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Table of Contents
Introduction
– Overview
– Infrastructure Prerequisites
Initial VM Creation
– Install Windows
Image Generalization
GUIDE | 2
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Image Optimization
– Take a VM Snapshot
Conclusion
– In Conclusion
– Additional Resources
GUIDE | 3
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Physical desktops – Resource usage on a physical machine impacts only the user who is using that machine. The operating
system on a physical machine determines whether or not resources are available. One-time actions impact the user only the
first time they are performed because the machine is never refreshed. For example, a user typically gets a new user profile the
first time they log on, and they continue to use that same profile with all subsequent logons.
Virtual desktops – In contrast, in a virtual environment, the guest operating system behaves as if it has exclusive access to
the CPU cores, but in reality the cores are shared between 2 to 8 virtual machines. When using nonpersistent VMs or user
profiles, the actions that are intended to run only once could run every time a user logs on.
Therefore, with virtual desktops, one-time system actions must be configured in the base image, and one-time user actions must be
configured in the default (or mandatory) user profile. In addition, to reach a higher consolidation ratio, increasing the number of VMs
hosted on a single VMware vSphere® host, VMware recommends turning off features that are not needed.
• VMware Instant Clone Technology for fast desktop and RDSH provisioning
JMP allows components of a desktop or RDSH server to be decoupled and managed independently in a centralized manner, yet
reconstituted on demand to deliver a personalized user workspace when needed. JMP is supported with both on-premises and cloud-
based Horizon deployments, providing a unified and consistent management platform regardless of your deployment topology. The
JMP approach provides several key benefits, including simplified desktop and RDSH image management, faster delivery and
maintenance of applications, and elimination of the need to manage “full persistent” desktops.
Note: Installing the components of JMP is required only if you want to use that functionality. Similarly, installing the Horizon Agent is
required only if you plan to use the image for VMware Horizon desktop or application pools.
Important: The procedures in this guide are sequential and build on one another, so make sure to complete each procedure in each
chapter before moving on to the next.
GUIDE | 4
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Intended Audience
This guide is intended for IT administrators and product evaluators who are familiar with VMware vSphere and VMware vCenter
Server®. Familiarity with networking and storage in a virtual environment, Active Directory, identity management, and directory
services is assumed. Knowledge of other technologies, such as Horizon 7 is also helpful.
By default, Windows generates native images and performs disk cleanup actions after being idle for 10 minutes, which can use a full
core for up to an hour. When deploying a large pool, this means that the cluster might not be usable for up to an hour after
deployment. With image optimization, however, this process could be reduced to 30 seconds.
Only a single 32-bit operating system was tested, but any 32-bit operating system that has a corresponding 64-bit version listed should
work in the same way. All operating systems were tested with all updates available as of early July 2018. For a complete list of
supported Windows 10 operating systems, see the VMware knowledge-base article Supported versions of Windows 10 on Horizon
Agent Including All VDI Clones (Full Clones, Instant Clones, and Linked Clones on Horizon 7) (2149393).
Note: Most screenshots in this guide are from the latest Windows 10 OS version. If you have a different OS version, some screens
might look slightly different, but in general they are quite similar.
Important: Use an OS version that has a Microsoft Windows volume license key using the Key Management Service (KMS). KMS
treats each activated clone as a computer with a newly issued license. In a production environment, you must activate Windows. In an
GUIDE | 5
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
evaluation environment, you can create the VM and log in without activating Windows.
Mandatory
Mandatory
Operating Used Profile
Version Edition Architecture Profile
System Space Login
Size
Duration
Windows
1507 LTSB* x64 6.94 GB 563.0 KB 7S
10
Windows
1607 LTSB* x64 8.37 GB 820.0 KB 7S
10
Windows
1607 LTSB* x86 5.39 GB 825.5 KB 7S
10
Windows
1703 Education x64 7.87 GB 1080.0 KB 8.5 S
10
Windows
1703 Enterprise x64 8.16 GB 1082.1 KB 8.5 S
10
Windows
1703 Professional x64 8.26 GB 1082.3 KB 8.5 S
10
Windows
1709 Education x64 7.72 GB 1083.4 KB 8S
10
Windows
1709 Enterprise x64 7.88 GB 1085.4 KB 8S
10
Windows
1709 Professional x64 7.68 GB 1085.4 KB 8S
10
Windows
1803 Education x64 6.97 GB 1085.0 KB 8S
10
Windows
1803 Enterprise x64 7.19 GB 1087.0 KB 8S
10
Windows
1803 Professional x64 6.91 GB 1087.1 KB 8S
10
Windows
Server 1607 Datacenter x64 9.79 GB 824.0 KB 3.5 S
2016
Windows
Server 1607 Standard x64 9.44 GB 824.0 KB 3.5 S
2016
Windows
SP1 Enterprise x64 18.79 GB 1181.1 KB 5S
7
Windows
SP1 Professional x64 18.77 GB 1180.6 KB 5S
7
Windows
Enterprise x64 10.35 GB 878.8 KB 4.5 S
8.1
Windows
Professional x64 11.46 GB 862.7 KB 4.5 S
8.1
Windows
Server Datacenter x64 10.67 GB 578.8 KB 2.5 S
2012 R2
Windows
Server Standard x64 10.82 GB 574.6 KB 2.5 S
2012 R2
* LTSB means long-term servicing branch. This edition receives only security updates but no feature updates. OS upgrades are
released only once every three years or so. This edition does not include Edge or any Microsoft Store (Universal Windows Platform, or
GUIDE | 6
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
UWP) apps, or Cortana, the voice-activated digital assistant. This edition is meant for specialized systems that perform a single
important task—such as PCs that control medical equipment, point-of-sale systems, and ATMs.
Infrastructure Prerequisites
Before you can perform the procedures in this guide, you must have the following infrastructure components installed and configured:
VMware vSphere and vCenter Server. We used vSphere 6.7 and vCenter Server 6.7 in our testing. For information and
installation instructions, see the VMware vSphere documentation.
VMware ESXi™ host or hosts configured in the vCenter Server instance.
An authentication infrastructure that includes Active Directory, DNS, and DHCP.
If you intend to use VMware App Volumes™, you must have the host name or IP address of the server on which App Volumes
Manager is installed or will be installed. You will enter this information when you install the App Volumes Agent on the master
VM image.
If you plan to create Horizon 7 desktop pools, ideally at this point you would also have Horizon 7 Connection Server installed and
configured. We used Horizon 7 version 7.5. For installation instructions, see the Horizon 7 Installation guide.
Initial VM Creation
Create a Virtual Machine
Each desktop pool or RDSH server farm uses a master virtual machine (VM), which serves as the model for the deployed virtual
desktops. You use VMware vSphere® Web Client to create the master VM.
Prerequisites
Before you complete this procedure, you will need the following:
Windows ISO file – You must have uploaded an ISO file to a vSphere datastore. The ISO file must contain a supported
version of the Windows operating system. You will point to this file when completing the New Virtual Machine wizard. For a list
of the operating systems we tested, see Tested Operating Systems. For a complete list of supported Windows 10 operating
systems, see the VMware knowledge-base article Supported versions of Windows 10 on Horizon Agent Including All VDI
Clones (Full Clones, Instant Clones, and Linked Clones on Horizon 7) (2149393).
Important: Use an OS version that has a Microsoft Windows volume license key using the Key Management Service (KMS).
KMS treats each activated clone as a computer with a newly issued license. In a production environment, you must activate
Windows. In an evaluation environment, you can create the VM and log in without activating Windows.
User account – When you log in to vSphere Web Client, the account you use must have the privileges required to create a
VM. See the "Prerequisites" section of the product documentation topic Create a Virtual Machine with the New Virtual Machine
Wizard.
GUIDE | 7
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 8
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 9
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 10
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 11
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select a datastore or datastore cluster where you would like to store the VM.
2. Click NEXT.
GUIDE | 12
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select the lowest version of ESXi that this VM would be deployed to.
Tip: See Hardware Features Available with Virtual Machine Compatibility Settings.
2. Click NEXT.
GUIDE | 13
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select the Guest OS Version with the correct architecture (32- or 64-bit) and, when required, enable VBS.
2. Click NEXT.
GUIDE | 14
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select 4 CPUs. (Use 4 CPUs for the creation of the image. We will adjust this to production values later.)
2. Select 4 GB of memory.
Note: The table that follows describes the small amount of RAM on the ESXi host that is required for video overhead in
addition to system memory. This VRAM size requirement depends in on the display resolution and number of monitors
configured for end users.
3. Choose an appropriate hard disk size.
4. Select the appropriate network.
5. Browse to the Windows ISO file and select Connect.
6. Choose the appropriate video card settings.
7. Click NEXT.
GUIDE | 15
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Display
Width, in Height, in 1-Monitor 2-Monitor 3-Monitor 4-Monitor
Resolution
Pixels Pixels Overhead Overhead Overhead Overhead
Standard
Not
UHD (4K) 3840 2160 32.00 MB 78.00 MB 124.00 MB
supported
GUIDE | 16
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Click FINISH.
Install Windows
After you boot the VM, installation of the Windows OS begins automatically. You will accept most of the default settings and specify
that you are doing a new installation rather than an update.
2. Power on the VM
GUIDE | 17
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 18
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 19
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 20
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
This screen is only shown for an ISO that contains multiple editions.
Important: For Windows Server 2012 R2, select either of the following "Server with GUI" editions:
Windows 2012 R2 Standard (Server with a GUI)
Windows 2012 R2 Datacenter (Server with a GUI)
For Windows Server 2016, select either of the following "Desktop Experience" editions:
Windows Server 2016 Standard (Desktop Experience)
Windows Server 2016 Datacenter (Desktop Experience)
2. Click Next.
GUIDE | 21
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 22
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 23
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Click Next.
GUIDE | 24
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
The screen at which you enter audit mode depends on which Windows operating system you are using. For example, some operating
systems will automatically log in to Windows after a restart operation, while others will prompt for user credentials. If prompted, use
Administrator for the user name and leave the password field blank.
11.1. If You Are Not Prompted for Credentials Enter Audit Mode by Pressing CTRL+SHIFT+F3
GUIDE | 25
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
When you are prompted with Let's start with a region or to Get going fast, or Personalize, or Customize Settings, or Setup
Windows, press CTRL+SHIFT+F3 to switch to audit mode.
Note: Different Windows operating systems provide different prompts after the initial installation. This example shows Windows 10
1803.
11.2. If You Are Prompted for Credentials Leave the Password Blank and Press
CTRL+SHIFT+F3
GUIDE | 26
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
If prompted for credentials, use Administrator for the user name, ignore the password prompt, and press CTRL+SHIFT+F3 to switch
to audit mode. This example shows Windows Server 2016.
GUIDE | 27
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Click Yes.
2. In the System Preparation Tool dialog box, click Cancel.
Note: The following editions are supported for Windows Server installations:
For Windows Server 2012 R2, use either of the following "Server with GUI" editions:
For Windows Server 2016, use either of the following "Desktop Experience" editions:
GUIDE | 28
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
On the Windows Server system, start Server Manager, and select Manage > Server Manager Properties.
1. Select the check box Do not start Server Manager automatically at logon.
2. Click OK.
GUIDE | 29
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select Dashboard.
2. Click Add roles and features.
3. In the wizard, for Installation Type, use the default selection, which is Role-based or feature-based installation.
4. Follow the prompts to the Server Roles page.
GUIDE | 30
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. If you plan to use this server as an RDSH server, to create published applications and published desktops (rather than single-
user VDI desktops), select Remote Desktop Services on the Server Roles page.
2. Click Next, and click Next on the pages that follow until you come to the Role Services page.
GUIDE | 31
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Select the check box for the Remote Desktop Session Host service, and confirm that you want to add the applicable management
tools, before clicking Next.
1. On Windows Server 2012 R2 servers, on the Features page, install the Desktop Experience feature. This feature is already
installed on Windows Server 2016 (Desktop Experience) installations.
2. Click Next.
GUIDE | 32
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Follow the rest of the prompts, click Install on the Confirmation page, and close Server Manager.
Note: To display the command in this document, we had to add a line break after Packages\, but you should enter the command all
on one line:
GUIDE | 33
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Press Windows Key+I, to open Windows Settings, and click Update & Security or, for Windows 8.1 or Windows Server 2012 R2 and
earlier, navigate to Control Panel > System and Security > Windows Update.
Important: Currently (as of July 2018), Windows Update is not working on Windows 8.1 and 2012R2. Use Microsoft Baseline Security
Analyzer 2.3 to identify missing updates, and manually download and install them from the Microsoft Download Center.
GUIDE | 34
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Note: For non-LTSB Windows 10 versions, click Advanced options first and select Defer feature upgrades so that new features are
not downloaded and installed. Deferring feature upgrades does not affect security updates.
Click Check for updates and wait for the updates to be installed.
3. Restart the VM
GUIDE | 35
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. After the VM restarts, log in, press Windows Key+R and type cmd.exe.
2. Click OK
GUIDE | 36
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 37
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
For example, VMware Tools can run scripts that automate OS operations and can synchronize the time in the guest operating system
with the time on the vSphere host. You must install VMware Tools in VMs used for desktop and application pools.
GUIDE | 38
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Alternatively, you can select the VM and select ACTIONS > Guest OS > Install VMware Tools.
1. Open a console for the VM, and in Windows Explorer, select DVD Drive (D:) VMware Tools.
2. To start the wizard, double-click Setup64.exe (or Setup.exe for a 32-bit OS).
GUIDE | 39
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Click Next.
GUIDE | 40
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Click Install.
Click Finish.
GUIDE | 41
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Click No.
GUIDE | 42
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Also, because we no longer need the virtual CD/DVD drive, we can remove that as well as any other unnecessary virtual hardware
devices.
In the vSphere Web Client, right-click the VM and select Edit Settings.
2. Remove E1000e
GUIDE | 43
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. To delete the current network adapter, click on the cross that appears when your pointer hovers over the Network adapter 1
row.
2. Click ADD NEW DEVICE.
GUIDE | 44
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 45
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. To remove the virtual CD/DVD drive from the VM, click the X that appears when you hover your pointer over CD/DVD drive 1
row. If you do not plan to use USB redirection, do the same with the USB xHCI controller.
2. Click OK and edit the VM again.
GUIDE | 46
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
To remove the virtual SATA controller from the VM, click the X that appears when you hover your pointer over the SATA Controller 0
GUIDE | 47
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
row.
Note: In the next step, you are going to disable the hotplug feature. With hotplug enabled, NICs and SCSI controllers appear as
removable devices, and the Safely Remove Hardware option for the virtual hardware appears in the Windows System Tray
(notification area). To prevent this option from appearing, we will disable the capability.
GUIDE | 48
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 49
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 50
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. On the Advanced tab, select Local Bus IDE adapter and press Enter.
2. Select Disabled and press Enter.
GUIDE | 51
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Image Generalization
Prepare the OS for Generalization
Generalizing a Windows image means removing computer-specific information so that the image can be deployed throughout an
enterprise. Before we can generalize the image, we need to remove any Windows Store applications that are not needed. In our
example, these include all the Windows Store applications that can be deleted.
The CopyProfile setting in the Sysprep answer file enables you to customize a user profile and use the customized profile as the
default user profile. Windows uses the default user profile as a template to assign a profile to each new user. Because we want to
prevent the removed Windows Store applications from being automatically reinstalled later, when we log in with a user account, we
need to merge the change into the default user profile.
Note: When preparing the master image, we do not join the machine to a domain. Joining a machine to a domain is part of the
deployment process, not part of image creation and optimization. This way, the image can be used across domains. Also some
optimization steps will not work if the image is joined to a domain.
For example, use the Start button on the master VM to browse to Windows PowerShell, right-click, and select Run as administrator.
Note: Server, LTSB, and older versions of Windows do not have AppX packages.
GUIDE | 52
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. On the Windows Server VM, run gpedit.msc, and navigate to Computer Configuration > Windows Settings > Security
Settings > Account Policies > Password Policy.
2. Double-click Password must meet complexity requirements.
3. Click Disabled and click OK.
For Windows Server operating systems disable Password must meet complexity requirements. Desktop operating systems already
GUIDE | 53
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
have this setting. When using this image later the domain policies will overwrite this setting, but for the Master this allows the use of an
empty administrator (which should also be disabled by the domain policy) password.
Create a new file with the name unattend.xml in the c:\windows\system32\sysprep directory.
Note: If you copy the following text from a Web (HTML) page, the line breaks will most likely be preserved, but if you copy the lines
from a PDF file, the line breaks will not be correct. Be sure to copy the text from an HTML page.
GUIDE | 54
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
language="neutral" versionScope="nonSxS">
<CopyProfile>true</CopyProfile>
<TimeZone>Mountain Standard Time</TimeZone>
<ComputerName>*</ComputerName>
</component>
</settings>
<settings pass="oobeSystem">
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-
International-Core" processorArchitecture="amd64"
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<InputLocale>en-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UserLocale>en-us</UserLocale>
</component>
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-
Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS">
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>Administrator</Username>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<ProtectYourPC>3</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Description>Local Administrator</Description>
<DisplayName>Administrator</DisplayName>
<Group>Administrators</Group>
<Name>Administrator</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>
</unattend>
Important: Take the following version-specific guidelines into account when creating this file:
When using a 32-bit operating system, replace the instances of amd64 with x86.
When using Windows 7, delete the lines with HideLocalAccountScreen, HideOEMRegistrationScreen, and
HideOnlineAccountScreen.
GUIDE | 55
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
For all versions except Windows 7, open a command prompt and execute the following command from the directory where
sysprep.exe is installed. For Windows 7, because the /mode:vm option is not available, run the command without it.
After Sysprep runs, the system reboots. For Windows Server operating systems, when you are prompted to change the password,
leave everything blank and press Enter.
During logon, the screen might stay black a bit longer than usual. This should last only two minutes and occur only during the first
logon.
GUIDE | 56
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 57
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 58
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 59
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
With the default profile selected, click Copy To. This is the default user profile you customized and saved when you performed the
procedure in Prepare the OS for Generalization.
1. For all Windows 10/Server 2016 versions except Windows 10 1507 LTSB, type c:\users\mandatory.v6. For Windows 10
1507 LTSB, use .v5. For Windows 8.1 and 2012 R2 use .v4, and for Windows 7 use .v2.
2. Click Change.
GUIDE | 60
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Type authenticated.
2. Click Check Names.
3. Click OK.
GUIDE | 61
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
If you see a profile named defaultuser0 or any other profile that is not Administrator or Default Profile:
GUIDE | 62
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Now that other profiles have been deleted and only the Administrator and Default Profile remain, click OK.
GUIDE | 63
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
In the File Explorer window, browse to c:\users\mandatory.v6 (or the correct .v version number for the OS you are using). This
is the location where you just copied the default user profile, which is named ntuser.dat. You cannot see the file at this point
because it is hidden.
GUIDE | 64
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Click View.
2. Select the Hidden items check box.
3. Rename ntuser.dat to ntuser.man. Renaming the file with the .man extension causes the user profile to become a
mandatory, read-only profile.
GUIDE | 65
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 66
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 67
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
User account – When you log in to the OS of the master image to run the installer, the account you use must have local
administrative privileges.
Installer – 32-bit and 64-bit Horizon View Agent installer (.exe) files are available from the Download VMware Horizon page.
You must download the file and copy it to the system where it will run or to a location accessible to the system.
VM with supported Windows OS – The virtual machine must be running a Windows operating system that Horizon Agent
supports. For a list of the systems we tested, see Tested Operating Systems. For a complete list of supported Windows 10
operating systems, see the VMware knowledge-base article Supported versions of Windows 10 on Horizon Agent Including All
GUIDE | 68
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
VDI Clones (Full Clones, Instant Clones, and Linked Clones on Horizon 7) (2149393).
Important: If you install Horizon Agent on a Windows Server machine on which the Remote Desktop Services (RDS) role is not
installed, the wizard will prompt you to Install VMware Horizon Agent in 'desktop mode'.
Selecting this option configures the Windows Server machine as a single-user virtual desktop rather than as an RDS host. If you
intend the machine to function as an RDS host, cancel the Horizon Agent installation, install the RDS role on the machine, and restart
the Horizon Agent installation.
Log in to the OS of the master VM as an Administrator, and double-click the installer file to start the wizard, and click Next on the
Welcome page.
GUIDE | 69
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Select I accept the terms in the license agreement, and click Next.
GUIDE | 70
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
The environment must be either IPv6 only or IPv4 only. Horizon 7 does not support a mixed IPv6 and IPv4 environment.
You can later control use of the feature by setting group policies or by using Horizon Smart Policies for granular control. For example,
you can set a condition for the Smart Policy so that users can access USB devices only when connecting from inside the corporate
network.
GUIDE | 71
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Because the View Composer Agent cannot be installed if you plan to install the Instant Clone Agent, disable the VMware Horizon
View Composer Agent, and click Next.
GUIDE | 72
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Enable the VMware Horizon Instant Clone Agent, and click Next.
Instant Clone Technology enables single-image management with automation capabilities. You can rapidly create instant-clone
desktop pools and automated RDSH server farms that contain thousands of VMs.
Note: Even though you install this feature, you can still use this master image to create full-clone desktop pools in addition to instant-
clone desktop pools.
GUIDE | 73
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Because the Persona Management feature cannot be installed if you plan to install the Instant Clone Agent, disable the VMware
Horizon Persona Management feature, and click Next.
Note: For some operating systems, this component might not appear in the list.
GUIDE | 74
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Enable installation of the Horizon Performance Tracker, as well as any other features you might require, and click Next.
VMware Horizon Performance Tracker is a utility that runs in a remote desktop or RDSH server and monitors the performance of the
display protocol and system resource usage.
Note: For a description of each of the features in the list, see Horizon Agent Custom Setup Options.
GUIDE | 75
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
If the Remote Desktop Protocol page appears, select Enable the Remote Desktop capability on this computer, and click Next.
This wizard page might not appear if you have already enabled this feature in Windows Firewall.
If you select the Do not enable the Remote Desktop capability on this computer option, you can manually enable the remote
desktop feature later and configure the firewall exceptions.
GUIDE | 76
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Now that all the correct components are configured to be installed, click Install.
GUIDE | 77
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
FlexEngine, the User Environment Manager agent component, applies the policies that the IT administrator creates with the User
Environment Manager Management Console. To install this component, you run the same VMware User Environment Manager Setup
wizard that you run to install the management console.
GUIDE | 78
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Note: Installing the User Environment Manager Agent is an optional step. Install this agent only if you plan to use this functionality.
User account – When you log in to the OS to run the installer, the account you use must have administrative privileges.
Installer – If necessary, you can download the installer from the VMware Downloads page. The installer is an architecture-
specific (x86 or x64) MSI file. You must download the file and copy it to the system where it will run or to a location accessible
to the system.
Internet access – The installation process includes a certificate revocation check to verify the digital signature of the MSI file.
This check requires Internet access.
VM with supported Windows OS – The machine must be running a supported Windows version. For a list of the systems we
tested, see Tested Operating Systems. For a complete list of supported Windows 10 operating systems, see the VMware
knowledge-base article Supported versions of Windows 10 on Horizon Agent Including All VDI Clones (Full Clones, Instant
Clones, and Linked Clones on Horizon 7) (2149393).
Note: When you install the User Environment Manager agent on a VM where Horizon Agent is already installed, you are not required
to specify a User Environment Manager license file. However, you are required to have purchased User Environment Manager. This
component is included with Horizon 7 Enterprise Edition.
Double-click the installer file to start the wizard, and click Next on the Welcome page.
GUIDE | 79
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Select I accept the terms in the license agreement, and click Next.
GUIDE | 80
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Click Next.
Select Typical, which installs the VMware UEM FlexEngine agent component, along with the optional components: Application
Migration and Self-Support.
GUIDE | 81
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Because you are installing the User Environment Manager agent on a VM where Horizon Agent is already installed, you can click
Next. You are not required to specify a User Environment Manager license file.
6. Click Install
GUIDE | 82
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 83
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
App Volumes can also provide user-writable volumes, which allow users to install their own applications and have those applications
follow the user as they connect to different virtual desktops.
You install the App Volumes Agent on the master VM so that the App Volumes Manager can communicate with the desktops you
deploy and attach the correct applications when a user logs in.
Note: Installing the App Volumes Agent is an optional step. Install this agent only if you plan to use this functionality.
User account – When you log in to the OS of the master image to run the installer, the account you use must have local
administrative privileges.
Installer – App Volumes is included with Horizon 7 Enterprise Edition, available from the Download VMware Horizon page.
The App Volumes installer is distributed as an ISO file. You can mount the ISO on the machine where you want to create the
App Volumes component, or you can also extract the ISO contents to a shared folder. This option allows you to install each
component without mounting the ISO each time.
VM with supported Windows OS – The machine must be running a supported Windows version. For a list of the systems we
tested, see Tested Operating Systems. For a complete list of supported Windows 10 operating systems, see the VMware
knowledge-base article Supported versions of Windows 10 on Horizon Agent Including All VDI Clones (Full Clones, Instant
Clones, and Linked Clones on Horizon 7) (2149393).
App Volumes Manager server information – During agent installation, you will be prompted to enter the host name or IP
address and port number of the App Volumes Manager that this agent will communicate with.
GUIDE | 84
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
In the Installation folder of the App Volumes installation media, double-click setup.exe, and click Next.
Select I accept the terms in the license agreement, and click Next.
GUIDE | 85
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
On the App Volumes Install Screen page, select Install App Volumes Agent, and click Install.
GUIDE | 86
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
5. Click Install
GUIDE | 87
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
7. Restart the VM
Many applications have integrated auto-update functionality. Install these applications and update them to the latest version, and then
turn off or disable the auto-update functionality to prevent the clones from updating individually.
GUIDE | 88
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Image Optimization
Run the VMware OS Optimization Tool
The VMware OS Optimization Tool fling helps optimize Windows 7/8/10 and Windows Server 2008 R2/2012/2016 systems for use
with Horizon 7. The optimization tool includes customizable templates to enable or disable Windows system services and features,
according to VMware recommendations and best practices, across multiple systems. Because most Windows system services are
enabled by default, the optimization tool can be used to easily disable unnecessary services and features to improve performance.
GUIDE | 89
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. To check for updates to the template for our Windows version, select the Public Templates tab.
2. Select Update Only.
3. If there is click Update. In the screen shot for this example, there is an update only for the templates provided by Login VSI,
not the default VMware one.
GUIDE | 90
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
To keep the default user profile pristine, you make a copy of the default template and adjust it to modify only the mandatory user
profile. If anything undesirable happens to the mandatory user profile now or later, you can restart from this point and will not be
required to reinstall.
To ensure that optimizations are not bypassed, you are going to copy this template and modify it to include a mandatory user profile.
The mandatory user profile is used for new (and old) accounts instead of the default user profile.
GUIDE | 91
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Expand Apply HKCU Settings to Register and click Load HKCU for editing.
2. Change %USERPROFILE%\..\Default User\NTUSER.DAT to %USERPROFILE%\..\MANDATORY.V6\NTUSER.MAN.
Important: For all Windows 10/Server 2016 versions except Windows 10 1507 LTSB, use mandatory.v6. For Windows 10
1507 LTSB, use .v5. For Windows 8.1/Server 2012 R2, use .v4. For Windows 7, use .v2.
3. Click Save.
GUIDE | 92
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 93
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select the appropriate optimizations from the extensive list. For most VDI environments, use the default selection. For
Windows 8.1 and 2012R2, de-select SMB v1.
2. Click Optimize.
GUIDE | 94
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Monitor the optimization results, close the VMware OS Optimization Tool when the process is complete, and restart the VM.
On the master VM, press Windows Key+R, type gpedit.msc, and click Ok.
GUIDE | 95
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
For Windows 7, navigate to Computer Configuration > Administrative Templates > System > Logon and set Don't
display the Getting Started welcome screen at logon to Enabled.
For Windows 8.1/2012R2 and Windows 10/Server 2016, navigate to Computer Configuration > Administrative Templates >
System > Logon, and set Show first sign-in animation to Disabled.
For Windows 10/Server 2016, navigate to Computer Configuration > Administrative Templates > Windows Components
> Search, and set Allow Cortana to Disabled.
For Windows 8.1/2012R2 and Windows 10/Server 2016 1507 and 1607, navigate to Computer Configuration >
Administrative Templates > Windows Components > Windows Defender and set Turn off Windows Defender to
Enabled.
For Windows 10/Server 2016 1607, 1703, 1709 and 1803, navigate to Computer Configuration > Administrative Templates
> Windows Components > Cloud Content and set Turn off Microsoft consumer experience to Enabled.
For Windows 10 1703, 1709 and 1803, navigate to Computer Configuration > Administrative Templates > Windows
Components > Windows Defender Antivirus and set Turn off Windows Defender Antivirus to Enabled.
For Windows 10 1709 and 1803, navigate to Computer Configuration > Administrative Templates > Windows
Components > Windows Defender Security Center > Notifications and set Hide all notifications to Enabled.
GUIDE | 96
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 97
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Download the Sysinternal SDelete Tool and run the following command from a command prompt:
This command overwrites all empty disk space with zeroes so that we can shrink the VMDK (virtual machine disk file) later.
slmgr.vbs /ckms
slmgr.vbs /ckhc
ipconfig /release
GUIDE | 98
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
shutdown /s /t 0 /c "Image Ready" shuts down the local computer, with 0 seconds between the time the command is given
and the time the shutdown occurs, and leaves the comment "Image Ready."
Using the cloning process described in this article, we can select the thin-disk option and shrink the size of the VM according to the
amount of zeroes written during the procedure Clean Up Disk Space and Zero-Out the Virtual Hard Disk.
Cloning also offers a good opportunity to adjust the virtual hardware specifications to better suit production usage.
1. Using vSphere Web Client, right-click the VM in the inventory list, and select Clone.
2. Select Clone to Virtual Machine.
GUIDE | 99
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 100
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 101
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select a datastore or datastore cluster where you would like to store the VM.
2. Select Thin Provision.
3. Click NEXT.
GUIDE | 102
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 103
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
The actual values you use should be tested in a pilot, but the following settings are a good starting point:
7. Click Finish
GUIDE | 104
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
For the example in this procedure, the storage usage shrank from 44.2 GB to 10.84 GB, which represents a 75 percent savings.
GUIDE | 105
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Take a VM Snapshot
To create a desktop pool of cloned VMs, or to create a farm of cloned RDSH server VMs, you need to create a frozen state, or base
image, from which the clone can be derived.
For instant-clone pools and server farms, and for linked-clone pools, you achieve this state by taking a VM snapshot of the
master VM.
For full-clone pools, you achieve this state by cloning the master VM to a VM template.
This procedure describes taking a VM snapshot. For information about cloning a VM to a VM template, see Clone a Virtual Machine to
a Template.
1. Using vSphere Web Client, right-click the VM in the inventory list, and select Snapshots.
2. Select Take Snapshot.
GUIDE | 106
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Provide a descriptive name; for example, the name might include the date of the snapshot.
2. Click OK.
If you use Horizon 7, you can also use VMware-provided GPO administrative templates for fine-grained control of access to features.
See Using Horizon 7 Group Policy Administrative Template Files.
To prevent group policy settings from being applied to other Windows servers or workstations in the same domain as your desktops or
server farms, you can create a GPO for group policies and link it to the OU that contains your VMs. For example, later in this guide,
you create a group policy to ensure that every user who logs on to a virtual desktop in a specific OU will use the same mandatory user
profile.
You can also delegate control of the OU to subordinate groups, such as server operators or individual users.
User Groups
You should also create groups for different types of users in Active Directory. For example, you can create a group called End Users
for your end users and another group called Horizon Administrators for users that will administer virtual desktops and applications.
Later in this guide, you will add a user group containing end users to the local Remote Desktop Users group in AD. Then members of
the group will be able to connect to any VM that is joined to the domain.
GUIDE | 107
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
In most cases, you will apply the policy to the OU where you plan to deploy VMs for end users. The policy is called Set roaming
profile path for all users logging onto this computer.
If you do not want all users in an OU to use the same profile, you can alternatively double-click a user name in Active Directory Users
and Computers, and type the profile path on the Profile tab. The profile can be located either on the local VM or on a file share. For
example:
The path to the mandatory user profile does not have the .v6 (or any other .v<N> extension, depending on the Windows version).
Per user, in Active Directory Users and Computers, if you have multiple mandatory profiles to use for different users in the
same OU.
For all users who log on to a computer in a certain organization unit (OU). Using the Group Policy Management Editor, you can
create a group policy to set the profile path and apply it to the OU.
You must use one option or the other. If you try to use both options for a user, the group policy setting overwrites the per-user setting.
GUIDE | 108
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
The benefit off keeping it local is that it requires less resources. You do not need a file share.
The benefit of having it on a share is that if you ever need to update the profile, you will not need to update the master VM and
push new VMs just to update the profile.
1. Open the Group Policy Management Editor for the OU, and navigate to Computer Configuration > Policies >
Administrative Templates > System > User Profiles.
2. Double-click Set roaming profile path for all users logging onto this computer.
GUIDE | 109
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Select Enabled.
2. Specify the path to the mandatory user profile file, but do not include the .v6 (or other version number).
3. Click OK.
Important: Because mandatory user profiles prevent user changes from being saved when a user logs off, be sure to also use User
Environment Manager policies. With User Environment Manager, you can configure folder redirection to preserve user data as well as
other policies to save user changes to application settings.
GUIDE | 110
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Setting Value
Computer Configuration > Policies > Administrative Templates > System > Group Policy
Enabled
Configure user Group Policy loopback processing mode
Set Mode to Replace
Computer Configuration > Policies > Administrative Templates > System > Logon
Always wait for the network at computer startup and logon Enabled
If you use Horizon 7, you can also use VMware-provided GPO administrative templates for fine-grained control of access to features.
See Using Horizon 7 Group Policy Administrative Template Files.
Setting Value
Computer Configuration > Policies > AdministrativeTemplates > Windows Components > Remote Desktop Services >
Remote Desktop Session Host > Licensing
Enabled
Use the specified Remote Desktop license server
(Comma-separated list of license servers to use)
Enabled
Set the Remote Desktop license mode (Choose the correct Per Device or Per User mode for your
CALs)
Computer Configuration > Policies > Administrative Templates > System > User Profiles
If you use Horizon 7, be sure to review the VMware-provided administrative templates for RDSH server management. See Using
Remote Desktop Services Group Policies.
The members of the Remote Desktop Users group are always added to the local Remote Desktop Users group of every virtual
desktop or RDSH server that is joined to your domain. When adding new users, you need only add them to the Remote Desktop
Users group.
GUIDE | 111
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
On the domain controller (AD machine), click the Start button, and navigate to Windows Administrative Tools > Group Policy
Management.
GUIDE | 112
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
GUIDE | 113
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. Right-click the Remote Desktop Users group that you just added to Restricted Groups.
2. Select Properties.
3. Click Add.
4. Add a group of end users.
5. Click OK in the Add Member dialog box.
6. Click OK in the Remote Desktop Users Properties dialog box.
For more information about having VMs use physical GPUs, see Deploying Hardware-Accelerated Graphics with VMware Horizon 7.
1. Internet Explorer
GUIDE | 114
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. To turn off hardware graphics acceleration for Internet Explorer, open the Internet Options dialog box by clicking the Tools icon
and selecting Internet Options.
2. Click the Advanced tab.
3. From the Accelerated graphics list, select Use software rendering instead of GPU rendering.
4. Click OK.
2. Microsoft Office
GUIDE | 115
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. To turn off hardware graphics acceleration for Microsoft Office, open the Options dialog box by selecting File > Options in the
application (in this example, Microsoft Word).
2. Select Advanced.
3. Scroll down to the Display section.
4. Select Disable hardware graphics acceleration.
3. Adobe Reader
GUIDE | 116
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
1. To turn off hardware graphics acceleration and disable other CPU-intensive display options for Adobe Reader, open the
Preferences dialog box by selecting Edit > Preferences.
2. Select Page Display.
3. In the Rendering section, deselect the following options:
Smooth imaging
Smooth line art
Use page cache
Enhance thin lines
4. In the Page Content and Information section, deselect Use smooth zooming.
For more information, see the Adobe documentation about General Application Settings in the Windows Registry.
4. Google Chrome
GUIDE | 117
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Conclusion
In Conclusion
With the image optimization procedures in this guide, you are able to achieve a significant reduction in the amount disk space, CPU,
and memory used by virtual desktop and RDSH server VMs and their vSphere hosts. The result is a corresponding savings in initial
deployment time, user logon times, and IOPS.
Using the VMware OS Optimization Tool fling greatly simplifies many of these tasks.
This guide also provided step-by-step instructions for configuring the Windows image to perform optimally in a virtual environment,
where CPU cores are shared among many VMs, and where users might be accessing a new VM every time they log in, though they
probably will not realize it.
Twenty discreet versions of the Windows OS were tested using the procedures in this guide, including 12 versions of Windows 10.
The procedures in this guide help you create an optimized Windows image that you can use in a VMware Horizon implementation or in
other types of deployments. End users will have a great experience, whether they access their personalized virtual desktops or remote
applications from company laptops, their home PCs, thin client devices, Macs, tablets, or smartphones.
Additional Resources
For more information about the VMware products mentioned in this guide, you can explore the following resources:
GUIDE | 118
CREATING AN OPTIMIZED WINDOWS IMAGE FOR A VMWARE HORIZON VIRTUAL DESKTOP
Caroline Arakelian is a Senior Technical Marketing Manager, End-User-Computing Technical Marketing, VMware.
Graeme Gordon, Senior Staff End-User-Computing (EUC) Architect in End-User-Computing Technical Marketing, VMware
Jim Yanik, Senior Manager, End-User-Computing Technical Marketing, VMware
GUIDE | 119
VMware, Inc. 3401 Hillview Avenue Palo Alto CA 94304 USA Tel 877-486-9273 Fax 650-427-5001
www.vmware.com
Copyright © 2019 VMware, Inc. All rights reserved. This product is protected by U.S. and international
copyright and intellectual property laws. VMware products are covered by one or more patents listed at
http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in
the United States and/or other jurisdictions. All other marks and names mentioned herein may be
trademarks of their respective companies.