VMware Horizon Community
LFC
Enthusiast
Enthusiast

Creating a Variable

Hello

I need to be able to create name "Room" which is based on the first four characters of the Client PC hostname. This provides me with the location of the Client Machine running the Horizon Client in the school so I can use this location information.

In a simple batch script, I can retrieve the first four characters successfully using the command

set Room="%ViewClient_Machine_Name:~0,4%"

Is there a way to set this variable in UEM? The 'value' field just looks like a plain text field hat cannot interpret my command

Thanks

Sean

0 Kudos
1 Reply
DEMdev
VMware Employee
VMware Employee

Hi LFC,

You're right, UEM does not support the substring operators from cmd.exe. It probably wouldn't help you even if it did, as the ViewClient_ variables are not yet available when UEM runs during logon.

Your best bet is probably to use that batch script, and put it in the startup folder (or use File Explorer's Run key to launch it).

0 Kudos