<?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 How to pass vmware-cmd multiple getinfo variables at once? in vSphere Command-Line Interface Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/How-to-pass-vmware-cmd-multiple-getinfo-variables-at-once/m-p/1428058#M702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can connect to the server and set or view &lt;STRONG&gt;getinfo&lt;/STRONG&gt; variable values by issuing the following command on the command prompt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;vmware-cmd -H &amp;lt;server&amp;gt; -U &amp;lt;username&amp;gt; -P &amp;lt;password&amp;gt; setguestinfo variable value&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added &lt;CODE&gt;%programfiles(x86)%\VMware\VMware vSphere CLI\bin&lt;/CODE&gt; to &lt;STRONG&gt;PATH&lt;/STRONG&gt;, and &lt;CODE&gt;;.PL&lt;/CODE&gt; to &lt;STRONG&gt;PATHEXT&lt;/STRONG&gt; Windows environment variables, so I can issue the command without specifying its directory and extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set multiple variables &lt;EM&gt;at once &lt;/EM&gt;without having to connect to the server to issue each statement separately what I am currently achieving using the &lt;CODE&gt;for /f&lt;/CODE&gt; loop (of batch scripting)&amp;nbsp; to read the values from file (extracted from &lt;CODE&gt;.vmx&lt;/CODE&gt; config file) and set them on the host connecting to it every time to do so which takes much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done some research online, although without satisfaction and success, before registering on this forum to ask this question.&lt;/P&gt;&lt;P&gt;I also couldn't find such a scenario (setting multiple variables at once) in the manuals and references&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;I hope to find the right answer here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2017 10:51:46 GMT</pubDate>
    <dc:creator>Chinggis06</dc:creator>
    <dc:date>2017-05-09T10:51:46Z</dc:date>
    <item>
      <title>How to pass vmware-cmd multiple getinfo variables at once?</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/How-to-pass-vmware-cmd-multiple-getinfo-variables-at-once/m-p/1428058#M702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can connect to the server and set or view &lt;STRONG&gt;getinfo&lt;/STRONG&gt; variable values by issuing the following command on the command prompt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;vmware-cmd -H &amp;lt;server&amp;gt; -U &amp;lt;username&amp;gt; -P &amp;lt;password&amp;gt; setguestinfo variable value&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added &lt;CODE&gt;%programfiles(x86)%\VMware\VMware vSphere CLI\bin&lt;/CODE&gt; to &lt;STRONG&gt;PATH&lt;/STRONG&gt;, and &lt;CODE&gt;;.PL&lt;/CODE&gt; to &lt;STRONG&gt;PATHEXT&lt;/STRONG&gt; Windows environment variables, so I can issue the command without specifying its directory and extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set multiple variables &lt;EM&gt;at once &lt;/EM&gt;without having to connect to the server to issue each statement separately what I am currently achieving using the &lt;CODE&gt;for /f&lt;/CODE&gt; loop (of batch scripting)&amp;nbsp; to read the values from file (extracted from &lt;CODE&gt;.vmx&lt;/CODE&gt; config file) and set them on the host connecting to it every time to do so which takes much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done some research online, although without satisfaction and success, before registering on this forum to ask this question.&lt;/P&gt;&lt;P&gt;I also couldn't find such a scenario (setting multiple variables at once) in the manuals and references&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;I hope to find the right answer here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 10:51:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/How-to-pass-vmware-cmd-multiple-getinfo-variables-at-once/m-p/1428058#M702</guid>
      <dc:creator>Chinggis06</dc:creator>
      <dc:date>2017-05-09T10:51:46Z</dc:date>
    </item>
  </channel>
</rss>

