June 5, 2015 - Sven Huisman
App Volumes and VMware UEM issue
If you want to use or test VMware App Volumes and VMware UEM you will run into a minor issue. The Applications that are installed in the Appstack(s) will not be visible in the desktop until you refresh the shortcuts with VMware UEM. This will only occur if you check if the application is available with a VMware UEM condition:
It seems that the applications that are installed in an Appstack are not yet available when the user logs in. You will also run into this issue when an Appstack is mounted when the user is already logged in.
I discussed this issue with my colleague Rob Beekmans and he already blogged about it.
- prestartup.bat : Runs as SYSTEM (if the volume is attached from boot, this will run when svservice starts)
- startup.bat : Runs as SYSTEM (if the volume is attached from boot, this will run when svservice starts)
- shellstart.bat: Runs as user (if the volume is attached before the user logs in, this is called just before the Windows shell launches)
- startup_postsvc.bat: Runs as SYSTEM (but only if there are services/drivers on the volume) logon_postsvc.bat: Runs as user (but only if there are services/drivers on the volume)
- allvolattached.bat: Runs as user (if multiple volumes are all attached at the same time such as during logon, this is called only once)
- Mount the Appstack to a VM that has no App Volumes agent installed.
From the vSphere console or web client, edit settings on the VM, add existing disk, browse to the App Volumes datastore where the Appstack is located you want to edit. It is very important that the VM has no App Volumes agent installed!
- Assign a drive letter to the disk.
Log in to the VM, go to disk management and add a drive letter to the App Volumes disk.
- Open Windows Explorer and browse to the Appstack volume.
- Create a new text-file and rename it to: allvolattached.bat. (in the documentation allvolsattached.bat is mentioned, but it should be allvolattached.bat).
“C:\Program Files\Immidio\Flex Profiles\FlexEngine.exe” -uemrefreshshortcut
- Remove the drive-letter from the Appstack volume.
- Shutdown the VM and remove the disk from the VM (don’t delete it :-)).
If a user now logs on, the shortcuts will be refreshed once all Appstacks are loaded. VMware will probably fix this soon, but for now this is a decent workaround.
An easier way that accomplish a shortcut-refresh at user-login is to put the same command in the startup folder:
This will only refresh the shortcuts at login, not when Appstacks are mounted while a user is already logged in.