This week I wanted to test the the Workspace Environment Management Suite which is included in the XenApp/XenDesktop Enterprise edition. I don’t want to write an article about how to install the software. For a detailed installation guide you can refer to Carl Stalhoods website.
Install parameters when using PVS (silent):
Setup.exe /S /v”/qn /norestart AgentCacheAlternateLocation=\”D:\WEMCache\” AgentServiceUseNonPersistentCompliantHistory=\”1\””
Its important to redirect the cache to a persistent drive otherwise information about the process history will be lost after a reboot.
After installing the WEM Agent into the vDisk and configuring the needed GPO settings I powered on my XenApp worker for testing purpose. A short view in the WEM Admin console was telling me, that there was an issue with the “Synchronization State” under “Administration –> Agents”.
In the eventlog you only could find the information that the agent couldnt connect the broker machine because of a connection timeout.
First of all I was thinking maybe its a firwall problem but the specific ports used by the WEM Agent have been accessible. The following ports are used:
- Agent Broker – 8286
- Agent Sync – 8285
After reading the product documentation I found a command how to force the agent to synchronize against the WEM server.
C:\Users\Administrator>”C:\Program Files (x86)\Norskale\Norskale Agent Host\AgentCacheUtility.exe” -refreshcache
Citrix Workspace Environment Management Agent Cache Management Utility – By Citrix Systems, Inc – Version 126.96.36.199
Start Time: 03.05.2017 11:36:44
Total changes downloaded: 0/0
Last successful synchronization: 03.05.2017 11:36:45
Operation Completed Successfully
Sounds promising 🙂 Lets check the agent status in the WEM Admin console.
Now the synchronization was working but after rebooting the provisioned system the problem with the unknown sync state occured again.
Fix: You need to create a scheduled task which is refreshing the WEM cache on every startup of the system. The task should be run by the user “NT AUTHORITY\SYSTEM”.
net stop “Norskale Agent Host Service” /y
net start “Norskale Agent Host Service”
net start “Netlogon”
“C:\Program Files (x86)\Norskale\Norskale Agent Host\AgentCacheUtility.exe” -refreshcache