ZCM 11 SP3 Agent registration with non-persistent VMware View 5.3 VDI Desktops

We want to use ZENworks Configuration Management to manage our Windows 7 FAT desktops and VDI desktops. In our environment we were struggling to get our non-persistent VMware Windows 7 desktops registered in the ZCM Zone. After the Quickprep process (VMware KB) some desktops did not register or registered with an extra guid in the machine name. Both resulting in an unmanageable device without the associated ZCM icons (bundles) on the desktop. After trying many different potential solutions (cleaning parent, logon scripts etc.) to correctly register the devices, we came up with a permanent solution. Register the desktop with a VMware Post-synchronization script and use an agent with custom deployment settings.

ZCM and Vmware View settings in a couple of steps:

1 - Device folder ZCM
Because we do not need all the agent features in our VDI desktop. We added a new device folder for the (stateless) VDI desktops and selected the agent features needed.


2 - ZCM Registration key
To register the desktops in this folder we defined a registration key:


3 - ZCM Reconcile setting
After the user has logged out, the desktop will be deleted and recomposed.
The recomposed desktop is unique with exception of the hostname, so ZCM has to re-use (reconcile) the device object on hostname. Set the reconcile setting on “Machine name” and enable Differentiation.


4 - Deployment package ZCM agent
We do not want to use the build-in deployment packages (https://zenworksserver/zenworks-setup) because they register to the ZCM zone after installation or on first network connection. When using the build-in package the agent get registered in the VMware View composing process or when updating the parent if there is a network connection.

We added a deployment package without a server (delete all entries) and installed the agent in our parent image.


5 - VMware Post-synchronization script.
In the Pool settings from the View Administrator we added the following Post sync script (VMware KB

script name: zac
script parameter: reg –g –u username –p password https://servername.fqn - k VDI

We added the "Zenreg" user in ZCM with minimal rights to process the registration.


Now we can compose the VDI desktops!


How To-Best Practice
Comment List