<?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: Running a PowerCLI script against multiple vCenters at the same time in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299714#M38594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that you can also change that setting in the "session" scope, that way you shouldn't have to restart your session.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2016 05:42:16 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2016-05-30T05:42:16Z</dc:date>
    <item>
      <title>Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299707#M38587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I run a powerCLI script against more than one vCenter simultaneously?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;get-vm&lt;/P&gt;&lt;P&gt;and have it report all VMs in two different vCenters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 22:33:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299707#M38587</guid>
      <dc:creator>TheVMinator</dc:creator>
      <dc:date>2013-10-08T22:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299708#M38588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you will have to switch to "multiple" mode first.&lt;/P&gt;&lt;P&gt;You can do this with the &lt;A href="http://www.vmware.com/support/developer/PowerCLI/PowerCLI55/html/Set-PowerCLIConfiguration.html"&gt;Set-PowerCLIConfiguration&lt;/A&gt; cmdlet and the &lt;STRONG&gt;DefaultVIServerMode&lt;/STRONG&gt; switch.&lt;/P&gt;&lt;P&gt;Then you connect to all the vSphere servers you need to use. You can check by displaying the following variable&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;$global:defaultVIServers&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;Your script will now run against all the connected servers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative is to connect all your vCenters in linked mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 04:50:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299708#M38588</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2013-10-09T04:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299709#M38589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just to complete Luc post: when connecting to LinkedMode vCenters, use the '-AllLinked' parameter on Connect-VIServer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 17:18:35 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299709#M38589</guid>
      <dc:creator>rtunisi</dc:creator>
      <dc:date>2013-10-15T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299710#M38590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks for the info.&amp;nbsp; I'm still having an issue though:&lt;/P&gt;&lt;P&gt;I ran&lt;/P&gt;&lt;P&gt;set-powercliconfiguration -defaultviservermode multiple&lt;/P&gt;&lt;P&gt;I connected to one vcenter&lt;/P&gt;&lt;P&gt;Then I connected to another vcenter&lt;/P&gt;&lt;P&gt;But when I display the&lt;/P&gt;&lt;P&gt;$global:defaultVIServers&lt;/P&gt;&lt;P&gt;variable it still only shows one of the vcenters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why is it not showing both vCenters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 23:14:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299710#M38590</guid>
      <dc:creator>TheVMinator</dc:creator>
      <dc:date>2013-10-18T23:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299711#M38591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, a clarification, connecting, with AllLinked set to $true, to a vCenter that is part of a vCenter Server federation, is not the same as running PowerCLI in Multiple mode.&lt;/P&gt;&lt;P&gt;In Multiple mode all vSphere Server connections that are made, are stored together in the $global:defaultVIServers variable.&lt;/P&gt;&lt;P&gt;All cmdlets, that do no specify a specific vSphere Server with the Server parameter, will be executed to all vSphere servers in the $global:defaultVIServers variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your issue, let's first check if all is configured correctly.&lt;/P&gt;&lt;P&gt;Check if the configuration is saying "Multiple" for all the scopes.&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Get-PowerCLIConfiguration&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you see something like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="multiple.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/47764i8AECBD75E9EE3F73/image-size/large?v=v2&amp;amp;px=999" role="button" title="multiple.png" alt="multiple.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the setting will only be for your &lt;STRONG&gt;current&lt;/STRONG&gt; session.&lt;/P&gt;&lt;P&gt;When you stop/start the session, the setting will be gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the setting for AllUsers, like this&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Set-PowerCLIConfiguration -DefaultVIServerMode Multiple -Scope AllUsers&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then you will see this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="multiple.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/47795i37506F81B7CEE8EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="multiple.png" alt="multiple.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the configuration will be remembered between sessions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 07:29:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299711#M38591</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2013-10-19T07:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299712#M38592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Lucida Console; color: #f5f5f5; font-size: 8pt;"&gt;em32&amp;gt; Get-PowerCLIConfiguration&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It was set to multiple for "all users" but not for "user".&amp;nbsp; I ran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set-PowerCLIConfiguration -DefaultVIServerMode Multiple -Scope User&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and that resolved it - thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 02:26:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299712#M38592</guid>
      <dc:creator>TheVMinator</dc:creator>
      <dc:date>2013-11-02T02:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299713#M38593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LucD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also facing the same problem and use the method provided by you. But when I have tested it it was not working then I have open new session of power CLI then its stared working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:- Please open a new session after changing your configuration so you get desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suresh Siwach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 05:39:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299713#M38593</guid>
      <dc:creator>sureshsiwach</dc:creator>
      <dc:date>2016-05-30T05:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299714#M38594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that you can also change that setting in the "session" scope, that way you shouldn't have to restart your session.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 05:42:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299714#M38594</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2016-05-30T05:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Running a PowerCLI script against multiple vCenters at the same time</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299715#M38595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So finally how you did this simultaneously to connect all the VC.&lt;/P&gt;&lt;P&gt;I also trying to do the same but no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get Multiple VM's information from multiple VCs, but currently I am pushing this using Foreach loop to get inside VC's details.&lt;/P&gt;&lt;P&gt;I want to run my script parallelly on all mentioned VCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LucD assist me to use Job but didn't understand so looking for some example to get this done.&lt;/P&gt;&lt;P&gt;Your help appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 16:14:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Running-a-PowerCLI-script-against-multiple-vCenters-at-the-same/m-p/1299715#M38595</guid>
      <dc:creator>AmolPatil</dc:creator>
      <dc:date>2017-03-06T16:14:42Z</dc:date>
    </item>
  </channel>
</rss>

