<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vNext.be &#187; virtual center</title>
	<atom:link href="http://www.vnext.be/tag/virtual-center/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vnext.be</link>
	<description>Operations Manager, Opalis, PowerShell, ...</description>
	<lastBuildDate>Wed, 18 Jan 2012 14:29:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VI Toolkit / PowerShell : How to connect to more than one Virtual Center at the same time</title>
		<link>http://www.vnext.be/2010/05/20/vi-toolkit-powershell-how-to-connect-to-more-than-one-virtual-center-at-the-same-time/</link>
		<comments>http://www.vnext.be/2010/05/20/vi-toolkit-powershell-how-to-connect-to-more-than-one-virtual-center-at-the-same-time/#comments</comments>
		<pubDate>Thu, 20 May 2010 20:28:10 +0000</pubDate>
		<dc:creator>Christopher Keyaert</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[virtual center]]></category>

		<guid isPermaLink="false">http://www.vnext.be/?p=16</guid>
		<description><![CDATA[Hello All, If you only use the command GET-VM, you will receive back the VMs List only from the Virtucal Center that you last connect on. If you want the get all the VM from your both virutal centers, you absolutely need to add the parameter -server $vcs to you command. If you want to connect to more [...]]]></description>
			<content:encoded><![CDATA[<p>Hello All,</p>
<p>If you only use the command <span style="color: #ff0000;"><strong><em>GET-VM</em></strong></span>, you will receive back the VMs List only from the Virtucal Center that you last connect on. If you want the get all the VM from your both virutal centers, you absolutely need to add the parameter <em><strong><span style="color: #ff0000;">-server $vcs</span></strong></em> to you command.</p>
<p>If you want to connect to more than one virtual center at the same time, here the starting code :</p>
<div class="codecolorer-container powershell default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #800080;">$vcs</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #800080;">$vcs</span> <span style="color: pink;">+=</span> connect<span style="color: pink;">-</span>viserver vc1.mydom.local<br />
<span style="color: #800080;">$vcs</span> <span style="color: pink;">+=</span> connect<span style="color: pink;">-</span>viserver vc2.mydom.local<br />
<span style="color: #008000;"># You could add many as you need...</span><br />
<br />
<span style="color: #008000;"># Command example</span><br />
get<span style="color: pink;">-</span>vm <span style="color: pink;">-</span>server <span style="color: #800080;">$vcs</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">export-csv</span> C:\Export.csv</div></td></tr></tbody></table></div>
<p>In a general way, don&#8217;t forget to add <span style="color: #ff0000;"><em><strong>-server $vcs</strong></em></span> to every command than you use with the VI Toolkit.</p>
<p>As always, RTM -&gt; the documentation on VI Toolkit :<br />
<a href="http://communities.vmware.com/docs/DOC-4210">http://communities.vmware.com/docs/DOC-4210</a></p>
<p>Christopher Keyaert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vnext.be/2010/05/20/vi-toolkit-powershell-how-to-connect-to-more-than-one-virtual-center-at-the-same-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

