<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating a Variable in Dynamic Environment Manager</title>
    <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Creating-a-Variable/m-p/2267340#M5008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a simple batch script, I can retrieve the first four characters successfully using the command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Room="%ViewClient_Machine_Name:~0,4%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2018 11:59:51 GMT</pubDate>
    <dc:creator>LFC</dc:creator>
    <dc:date>2018-08-20T11:59:51Z</dc:date>
    <item>
      <title>Creating a Variable</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Creating-a-Variable/m-p/2267340#M5008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a simple batch script, I can retrieve the first four characters successfully using the command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Room="%ViewClient_Machine_Name:~0,4%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 11:59:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Creating-a-Variable/m-p/2267340#M5008</guid>
      <dc:creator>LFC</dc:creator>
      <dc:date>2018-08-20T11:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Variable</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Creating-a-Variable/m-p/2267341#M5009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;LFC&lt;/B&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 14:16:59 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/Creating-a-Variable/m-p/2267341#M5009</guid>
      <dc:creator>DEMdev</dc:creator>
      <dc:date>2018-08-20T14:16:59Z</dc:date>
    </item>
  </channel>
</rss>

