VMware Dynamic Environment Manager (DEM) configuration

dem-configuration-01

VMware Dynamic Environment Manager (DEM) is a tool designed to manage user's profiles in a VMware Horizon environment.

This tool allows to retain both customizations and files saved by the logged user to the entitled VD and store them in a File Server.

dem 1

 

Install the Dynamic Environment Manager Console

From VMware website download the latest version of Dynamic Environment Manager. Copy the DEM installation file to a VM available in your network, also the Connection Server is fine since the application is just an editor that saves info to the File Server.

Run the installer and click Next.

dem 2

Accept the EULA and click Next.

dem 3

Leave default location and click Next.

dem 4

Choose Custom setup type.

dem 5

Disable the DEM FlexEngine installation and enable the DEM Management Console only. Click Next.

dem 6

Click Install to proceed with the installation.

dem 7

DEM Management Console is being installed.

dem 8

When the installation has been completed, click Finish to exit the wizard.

dem 9

 

Install the DEM FlexEngine

Open the master image used to generate clones and paste the DEM installer. Double click the file to run the installation wizard and click Next.

dem 10

Accept the EULA and click Next.

dem 11

Leave default location and click Next.

dem 12

Choose Custom setup type.

dem 13

Make sure DEM FlexEngine installation is enable and the DEM Management Console disabled. Click Next.

dem 14

Click Next.

dem 15

Click Install to proceed with installation.

dem 16

DEM Management Console is being installed.

dem 17

When the installation has been completed, click Finish to exit the wizard.

dem 18

Take the snapshot of the master image to use with clones. Enter a Name then click OK.

dem 19

 

Configure File Server shares

Since DEM needs to save some configuration files to a File Server, you need to configure some folders and shares granting the correct permissions.

The following permissions must be granted to the required folders:

 

DEMConfig folder

Share

  • Administrators > Full
  • Everyone > Change

Security

  • Administrators > Full > This folder, subfolders and files
  • G_Horizon_Users > Read & execute > This folder, subfolders and files

dem 20

 

DEMProfiles folder

Share

  • Administrators > Full
  • Everyone > change

Security

  • Administrators > Full > This folder, subfolders and files
  • G_Horizon_Users > Create folders / append data > This folder only
  • CREATOR OWNER > Full > Subfolders and files only

dem 21

 

Configure DEM

When the tool runs for the first time, you need to specify the location to store the DEM configuration files.

dem 22

Enter the path to the previously created folder and click OK.

\\<File_Server>\DEMconfig$

dem 23

The location for the configuration files has been set.

dem 24

 

Configure Applications

Click Download Config Template to download the templates you can use for some common applications.

dem 25

Enter the credentials for the My VMware Credentials and click OK.

dem 26

Templates are being downloaded.

dem 27

Specify installed applications to use from the list and click Save then Close.

dem 28

The applications selected for the clones.

dem 29

To define the user environment for the VDs, you need to access the appropriated section in DEM and configure the requested features accordingly.

 

Map Drives

Go to the User Environment tab and select Drive Mappings item to specify the location where the users will store their files. Click Create.

dem 30

Specify Name, Drive letter, Remote path (the path to the used File Server, in the example \\w16-data.nolabnoparty.local\Users$\%username%), and a Friendly name for the drive. Click Save.

dem 31

 

Folder Redirection

Select Folder Redirection and click Create.

dem 32

Specify Name, Remote path (the path to the used File Server, in the example \\w16-data.nolabnoparty.local\DEMProfiles$\%username%) and select the folders you need to redirect. Click Save.

dem 33

 

Create Shortcuts

Select Shortcuts and click Create.

dem 34

Specify Name, Target, and Destination then click Save.

dem 35

 

Configure GPO in AD

To inject the configuration to clones you need to create a GPO in Active Directory and link to the appropriate OU. To create the GPO you need to first import the ADMX template in your Active Directory located inside the DEM application .ZIP file.

dem 36

Extract the Administrative Templates (ADMX) folder from the .ZIP file and copy it to your Domain Controller.

dem 37

Select the folder en-US and the VMware DEM FlexEngine-admx. Copy the selected items to the folder C:\Windows\SYSVOL\sysvol\<domain>\Policies\PolicyDefinitions in your Domain Controller.

C:\Windows\SYSVOL\sysvol\nolabnoparty.local\Policies\PolicyDefinitions

dem 38

Now open the Group Policy Management and right click Group Policy Objects. Select New to create a new GPO.

dem 39

Enter a Name for the GPO and click OK.

dem 40

Right click the created GPO and select Edit.

dem 41

 

Computer Configuration

Go to Policies > Administrative Templates > System > Logon and configure the following policy:

  • Always wait for the network at computer startup and logon: Enabled

dem 42

Go to Policies > Administrative Templates > System > Group Policy and configure the following policy:

  • Configure user Group Policy loopback processing mode: Enabled - select Merge from the Mode drop-down menu.

dem 43

 

User Configuration

Go to Policies/Administrative Templates/VMware DEM/FlexEngine and configure the following policies:

  • DirectFlex - advanced settings: Enabled

dem 44

  • FlexEngine logging to the Windows event log: Enabled

dem 45

  • Flex config files: Enabled - specify the path to the DEMConfig share previously created.

dem 46

  • Run FlexEngine as Group Policy Extension: Enabled

dem 47

  • FlexEngine logging: Enabled - specify the path to the File Server and filename of the log file (\\w16-data\DEMProfiles$\%username%\Logs\FlexEngine.log). Select the desired Log level.

dem 48

  • Paths unavailable at logon: Enabled

dem 49

  • Profile archive backups: Enabled -  specify the location of the File Server to store profile backups (\\w16-data\DEMProfiles$\%username%\Backups) and specify the retention.

dem 50

  • Profile archives: Enabled - specify the location to store profiles archives in your File Server (\\w16-data\DEMProfiles$\%username%\Archives).

dem 51

  • Show VMware DEM logon and logoff progress information: Enabled

dem 52

Go to Policies > Windows Settings > Scripts (Logon/Logoff):

  • Logoff - enter the following parameters:

Script Name: "C:\Program Files\Immidio\Flex Profiles\FlexEngine.exe"
Script Parameters: -s

dem 53

 

Apply the GPO

Right click the OU to link the created GPO and select Link an Existing GPO.

dem 54

Select the GPO to use and click OK.

dem 55

The GPO has been linked to the selected OU. For the GPO to work, make sure the GPO is linked to the OU where Horizon Users are placed.

dem 56

 

Test user's profile with DEM

Access your Horizon infrastructure and Login with an entitled user.

dem 57

Click the entitled Pool to access the VD.

dem 58

When the login process completes, you will find all the items configured in DEM:

  • Notepad shortcut on the Desktop
  • Mapped drive S:

dem 59

Customizations and files saved by the logged user will be stored in the corrisponding user's profile in the File Server.

dem 60

With VMware Dynamic Environment Manager the management of user's profiles is more much easier and offers several options to customize the user environment.

signature

3 Comments

  1. Ted Church 20/10/2020
  2. Ishtvan Balint 26/03/2021
  3. Nirav Patel 24/05/2022