<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Customisation: Lesson 4 &#8211; PortGroups</title>
	<atom:link href="http://www.virtu-al.net/2009/05/20/customisation-lesson-4-portgroups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.virtu-al.net/2009/05/20/customisation-lesson-4-portgroups/</link>
	<description>Virtually everything is poshable</description>
	<lastBuildDate>Sat, 11 Feb 2012 00:31:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Alan Renouf</title>
		<link>http://www.virtu-al.net/2009/05/20/customisation-lesson-4-portgroups/#comment-553</link>
		<dc:creator>Alan Renouf</dc:creator>
		<pubDate>Fri, 26 Jun 2009 07:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=544#comment-553</guid>
		<description>&lt;a href=&quot;#comment-551&quot; rel=&quot;nofollow&quot;&gt;@Daniel &lt;/a&gt; 
Nice one, I like it, im so glad people are getting something from these, sometimes it feels like you just blog to yourself :)</description>
		<content:encoded><![CDATA[<p><a href="#comment-551" rel="nofollow">@Daniel </a><br />
Nice one, I like it, im so glad people are getting something from these, sometimes it feels like you just blog to yourself <img src='http://www.virtu-al.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.virtu-al.net/2009/05/20/customisation-lesson-4-portgroups/#comment-551</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 26 Jun 2009 00:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=544#comment-551</guid>
		<description>Wrote a little PS based on this article and thought I would share. In a hosting environment like our I am always adding VLAN&#039;s/Portgroups which you can imagine becomes tedious even on only 6 hosts. Enjoy

$VCUser = Read-Host &quot;User ID: &quot;
$VCPassword = Read-Host &quot;Password: &quot;
$portgroupname = Read-Host &quot;Enter the name of the PortGroup:&quot;
$vlanid = Read-Host &quot;Enter the VLAN ID&quot;

Connect-VIServer -Server vcolo.iconz.co.nz -User $VCUser -Password $VCPassword
$ESXHost = Get-VMHost &#124; Sort-Object -Property Name
 
ForEach($objHost in $ESXHost){
    $VSwitch = Get-Virtualswitch -VMHost (Get-VMHost $objHost) &#124; where-object { $_.Name -match &quot;Vswitch1&quot; }
    Write-Host &quot;Adding Virtual Port Group&quot; $portgroupname &quot;with VLAN Tag&quot; $vlanid &quot;to&quot; $objHost
    New-VirtualPortGroup -Name $portgroupname -VirtualSwitch $VSwitch -VLanId $vlanid -WhatIf
	}</description>
		<content:encoded><![CDATA[<p>Wrote a little PS based on this article and thought I would share. In a hosting environment like our I am always adding VLAN&#8217;s/Portgroups which you can imagine becomes tedious even on only 6 hosts. Enjoy</p>
<p>$VCUser = Read-Host &#8220;User ID: &#8221;<br />
$VCPassword = Read-Host &#8220;Password: &#8221;<br />
$portgroupname = Read-Host &#8220;Enter the name of the PortGroup:&#8221;<br />
$vlanid = Read-Host &#8220;Enter the VLAN ID&#8221;</p>
<p>Connect-VIServer -Server vcolo.iconz.co.nz -User $VCUser -Password $VCPassword<br />
$ESXHost = Get-VMHost | Sort-Object -Property Name</p>
<p>ForEach($objHost in $ESXHost){<br />
    $VSwitch = Get-Virtualswitch -VMHost (Get-VMHost $objHost) | where-object { $_.Name -match &#8220;Vswitch1&#8243; }<br />
    Write-Host &#8220;Adding Virtual Port Group&#8221; $portgroupname &#8220;with VLAN Tag&#8221; $vlanid &#8220;to&#8221; $objHost<br />
    New-VirtualPortGroup -Name $portgroupname -VirtualSwitch $VSwitch -VLanId $vlanid -WhatIf<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virtu-Al</title>
		<link>http://www.virtu-al.net/2009/05/20/customisation-lesson-4-portgroups/#comment-502</link>
		<dc:creator>Virtu-Al</dc:creator>
		<pubDate>Mon, 15 Jun 2009 19:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=544#comment-502</guid>
		<description>Ha ha, thanks very much - there is always one isnt there :)</description>
		<content:encoded><![CDATA[<p>Ha ha, thanks very much &#8211; there is always one isnt there <img src='http://www.virtu-al.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.virtu-al.net/2009/05/20/customisation-lesson-4-portgroups/#comment-498</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 11 Jun 2009 21:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=544#comment-498</guid>
		<description>Just a quick note, a VLAN id&#039;s of &quot;16810&quot; and &quot;16812&quot; are not really valid:)

Otherwise fantastic article!</description>
		<content:encoded><![CDATA[<p>Just a quick note, a VLAN id&#8217;s of &#8220;16810&#8243; and &#8220;16812&#8243; are not really valid:)</p>
<p>Otherwise fantastic article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry Coombs</title>
		<link>http://www.virtu-al.net/2009/05/20/customisation-lesson-4-portgroups/#comment-416</link>
		<dc:creator>Barry Coombs</dc:creator>
		<pubDate>Thu, 21 May 2009 12:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=544#comment-416</guid>
		<description>Fantastic Alan, really clearly written can&#039;t wait to have a play with this. 

Cheers

Barry</description>
		<content:encoded><![CDATA[<p>Fantastic Alan, really clearly written can&#8217;t wait to have a play with this. </p>
<p>Cheers</p>
<p>Barry</p>
]]></content:encoded>
	</item>
</channel>
</rss>

