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 140

 

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 141

Accept the EULA and click Next.

dem 142

Leave default location and click Next.

dem 143

Choose Custom setup type.

dem 144

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

dem 145

Click Install to proceed with the installation.

dem 146

DEM Management Console is being installed.

dem 147

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

dem 148

 

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 149

Accept the EULA and click Next.

dem 150

Leave default location and click Next.

dem 151

Choose Custom setup type.

dem 152

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

dem 153

Click Next.

dem 154

Click Install to proceed with installation.

dem 155

DEM Management Console is being installed.

dem 156

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

dem 157

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

dem 158

 

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 159

 

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 160

 

Configure DEM

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

dem 161

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

\<File_Server>DEMconfig$

dem 162

The location for the configuration files has been set.

dem 163

 

Configure Applications

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

dem 164

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

dem 165

Templates are being downloaded.

dem 166

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

dem 167

The applications selected for the clones.

dem 168

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 169

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

dem 170

 

Folder Redirection

Select Folder Redirection and click Create.

dem 171

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

dem 172

 

Create Shortcuts

Select Shortcuts and click Create.

dem 173

Specify Name, Target, and Destination then click Save.

dem 174

 

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 175

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

dem 176

Select the folder en-US and the VMware DEM FlexEngine-admx. Copy the selected items to the folder C:WindowsSYSVOLsysvol<domain>PoliciesPolicyDefinitions in your Domain Controller.

C:WindowsSYSVOLsysvolnolabnoparty.localPoliciesPolicyDefinitions

dem 177

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

dem 178

Enter a Name for the GPO and click OK.

dem 179

Right click the created GPO and select Edit.

dem 180

 

Computer Configuration

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

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

dem 181

 

User Configuration

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

  • DirectFlex – advanced settings: Enabled

dem 182

  • FlexEngine logging to the Windows event log: Enabled

dem 183

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

dem 184

  • Run FlexEngine as Group Policy Extension: Enabled

dem 185

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

dem 186

  • Paths unavailable at logon: Enabled

dem 187

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

dem 188

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

dem 189

  • Show VMware DEM logon and logoff progress information: Enabled

dem 190

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

  • Logoff – enter the following parameters:

Script Name: “C:Program FilesImmidioFlex ProfilesFlexEngine.exe
Script Parameters: -s

dem 191

 

Apply the GPO

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

dem 192

Select the GPO to use and click OK.

dem 193

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 194

 

Test user’s profile with DEM

Access your Horizon infrastructure and Login with an entitled user.

dem 195

Click the entitled Pool to access the VD.

dem 196

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

  • Notepad shortcut on the Desktop
  • Mapped drive S:

dem 197

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

dem 198

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

Copyright Nolabnoparty. All Rights Reserved.

Similar Posts