<?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 Re: Create one Array from another in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Create-one-Array-from-another/m-p/1858254#M63246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LUCD!&lt;/P&gt;&lt;P&gt;Its ok for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2020 14:21:39 GMT</pubDate>
    <dc:creator>IKirill</dc:creator>
    <dc:date>2020-05-22T14:21:39Z</dc:date>
    <item>
      <title>Create one Array from another</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Create-one-Array-from-another/m-p/1858252#M63244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I can't remember how to Create one Array from another&lt;/P&gt;&lt;P&gt;I have this:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1590151565484365 jive_text_macro" data-renderedposition="70.4000015258789_8_923_128" jivemacro_uid="_1590151565484365"&gt;&lt;P&gt;$newvms = @(&lt;/P&gt;&lt;P&gt;"VM_1.local",&lt;/P&gt;&lt;P&gt;"VM_2.local"&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;Foreach ($newvm in $newvms) {&lt;/P&gt;&lt;P&gt;$report = Get-VM | ? Name -like *$newvm*&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;$report&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i this structure how i can get $report ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 12:47:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Create-one-Array-from-another/m-p/1858252#M63244</guid>
      <dc:creator>IKirill</dc:creator>
      <dc:date>2020-05-22T12:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create one Array from another</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Create-one-Array-from-another/m-p/1858253#M63245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;newvms&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;VM_1.local&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000;"&gt;VM_2.local&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;report&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Get-VM&lt;/SPAN&gt; &lt;SPAN style="color: #a9a9a9;"&gt;-&lt;/SPAN&gt;Name &lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;newvms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;report&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 14:18:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Create-one-Array-from-another/m-p/1858253#M63245</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-05-22T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create one Array from another</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Create-one-Array-from-another/m-p/1858254#M63246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LUCD!&lt;/P&gt;&lt;P&gt;Its ok for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 14:21:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Create-one-Array-from-another/m-p/1858254#M63246</guid>
      <dc:creator>IKirill</dc:creator>
      <dc:date>2020-05-22T14:21:39Z</dc:date>
    </item>
  </channel>
</rss>

