Prepare Horizon Desktop
We will now prepare the Horizon desktop to automatically enroll to Workspace ONE. This will include:
- Optimizing the master image with the VMware OS Optimization Fling
- Command line enrollment into Workspace ONE
- Installing the Horizon Agent and setting up a manual dedicated pool
VMware OS Optimization Fling (OSOT)
We won't run the OSOT in this lab due to lab resources.
The master image used for Horizon managed by Workspace ONE needs to have the OS Optimization Fling run on it to make sure that it properly works with Workspace ONE. This ensures the system is optimized for Horizon VDI and also optimized for Workspace ONE. There is an VMware Horizon 7 on Workspace ONE template that must be used.
What is the OSOT
Why Optimize? Windows was designed for physical hardware, specifically desktops, and for that hardware to be accessed by just one user at a time. Windows uses many resources to present a responsive desktop, but many of its settings are unnecessary or even detrimental when applied to a virtual environment. These actions include, for example, animating windows as the user opens them. Performing this animation takes significant CPU resources, which decreases the number of desktops that you can host per VMware vSphere server. Consequently, this nonessential function in a virtual machine (VM) environment increases the amount of system hardware that you need. Even if hardware is plentiful, Windows animations do not perform well when accessed remotely, especially when connecting over a slow WAN or Internet connection. As a result, keeping animations enabled (in addition to other features unnecessary for VMs) impairs the end-user experience. Another example of desktop optimization in a virtual machine environment is to disable Windows Update so that control of the service is isolated to administrators. Administrators can run Windows Update in batch mode for the VMs as opposed to users performing this task.
Using OSOT
Before using the OSOT, which contains recommended configurations in the built-in OSOT templates, your IT organization should investigate and evaluate the benefits of the various optimizations. There is sometimes a trade-off between productivity and optimization. Also, test before and after using the OSOT to ensure that optimizations do not interfere with other software that might be in use within your organization. Road Map for Using the OSOT
Using the OSOT involves the following steps:
- Analyze a master image.
- Verify that the list of optimizations checked in the analysis results are those that you want to apply.
- (Optional) Export the analysis results to an HTML file.
- Optimize the master image.
- Analyze the optimization results. (Each optimization will include the status SUCCESS or FAILED).
- Troubleshoot FAILED results: Click the respective FAILED links to review error code and error string information.
- Address the cause of the failure and optimize again.
- (Optional) View the optimization history.
Obtain your Group ID from the Workspace ONE UEM Console
In the Workspace ONE UEM Console,
- Click on your Organization Group name.
- Copy or write down your Group ID value. In this example, the Group ID is yourid1234.
We will need to enter it into the enrollment batch file
Connect to Win10-01a Desktop
Double-Click the Win10-01a RDP link on the Control Center desktop. You will be automatically logged in as an Admin
Install Horizon Agent
We will now install the Horizon Agent in order to connect to this desktop via the Horizon Client
Browse to Horizon Agent Installer
- Open File Manager
- Browse to c:\tools
- Double Click the Horizon Agent Installer
Horizon Agent Installer
Click Next
License Agreement
Accept the License Agreement and then click Next
Protocol Configuration
Make sure IPv4 is selected, then click Next
Custom Setup
Accept the default configuration and click Next
Install the Program
Click Install to start installation of the program
Monitor Installation
Monitor the progress of the installation
Installer Completed
Click Finish
Defer Reboot
Click No to restart the system later
Edit Enrollment Batch file
We will now edit the enrollment batch file with your GroupID in order to do command line enrollment into Workspace ONE.
- In Windows File Explorer browse to c:\tools
- Select Enroll.bat
- Right-Click and choose Edit
- Turn on Word Wrap by selecting Format and then Word Wrap
- Replace the SERVER= section with
SERVER=labs.awmdm.com
- Replace yourgroupid with the groupid from Workspace ONE that you captured earlier
- Click File and then Save to save the file
- Click the X to close Notepad
DO NOT use yourid1234 as shown, be sure to use your own Group ID.
Open Regedit to create RunOnce Key
- Click the search button on the taskbar.
- Type Regedit in the search box.
- Click on Registry Editor.
Navigate to RunOnce Key
- Select all existing text in the Regedit address bar (Note: The current key may be different than the image)
- Clear the address bar by deleting or backspacing over what is there
- Select the empty address bar
- Either click and drag or use the Send Text function to send the following into the address bar
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
- Once the string is in the address bar, hit enter and make sure you are in the right location
Create RunOnce String
Make sure you are in the RunOnce key before you add the value
We will now create the string to run the enrollment batch file one time when Jim logs in
- Right-click the whitespace and choose New
- Choose String Value from the list
- Name the string
EnrolltoWSO
Enter Value to Run
Double Click the EnrolltoWSO entry
Change the Value Data to C:\tools\enroll.bat
Exit Regedit
Click the X in the top right of Regedit to close it.
Reboot Win10-01a
- Click the Start Button
- Click the Power Button
- Choose Restart
Create Desktop Pool
We will now create a manual pool with the Win10-01a desktop and then enroll it to Workspace ONE.
Open Chrome if it isn't already open
Click the Google Chrome shortcut on the main console desktop
Click on Horizon Admin Console
Click the Horizon folder and then the Horizon-01-AdminConsole link
Login to the Horizon Administrator
- Enter Administrator for the username
- Enter VMware1! for the password
- Click the Sign in button
Create a new Desktop Pool
- Click Desktops on the left pane in the Horizon Administrator
- Click Add to add a new desktop pool
Name the Pool
- Enter Horizon_WSO as the ID
- Enter Horizon_WSO as the Display name
- Enter Horizon Managed by Workspace ONE UEM in the description field
- Click Next
Search for User
- Type Jim in the Name/User name search field
- Click Find
- Check the box to select all results (Because of the limited screen space in the lab, you may not be able to see the Jim user)
- Click OK
Add the Entitlement
Click OK to save the entitlement. You have created and entitled a desktop pool to be managed by Workspace ONE UEM.
Review the newly created Desktop Pool
Click the link for the Horizon_WSO pool
The agent may take a few minutes to become available
0 Comments
Add your comment