<?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>Yellow Bricks &#187; powershell</title>
	<atom:link href="http://www.yellow-bricks.com/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yellow-bricks.com</link>
	<description>Building blocks for virtualization...</description>
	<lastBuildDate>Fri, 10 Feb 2012 11:12:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>The uncrowned king of PowerCLI is Alan Renouf</title>
		<link>http://www.yellow-bricks.com/2009/11/05/the-uncrowned-king-of-powercli-is-alan-renouf/</link>
		<comments>http://www.yellow-bricks.com/2009/11/05/the-uncrowned-king-of-powercli-is-alan-renouf/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 12:30:46 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=4446</guid>
		<description><![CDATA[<p>No, I am not exaggerating. Alan Renouf truly is the uncrowned king of PowerCLI. Although I&#8217;ve seen some amazing scripts from other people as well Alan always seems to bring that little extra to make him stand out. No this is not an Alan Renouf appreciation blog article, although he deserves one, this article is about his two latest additions. [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/11/05/the-uncrowned-king-of-powercli-is-alan-renouf/">The uncrowned king of PowerCLI is Alan Renouf</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>No, I am not exaggerating. Alan Renouf truly is the uncrowned king of PowerCLI. Although I&#8217;ve seen some amazing scripts from other people as well Alan always seems to bring that little extra to make him stand out. No this is not an Alan Renouf appreciation blog article, although he deserves one, this article is about his two latest additions.</p>
<p>The first one is the <a href="http://www.virtu-al.net/2009/11/02/virtu-al-vesi-powergui-powerpack/">Virtu-Al VESI &amp; PowerGui Powerpack</a>. If you are like me, not a powercli hero, this is what you were looking for all along. Alan has bundled all his script into a Powerpack which enables you to import all his scripts at once and run them with a single click. All scripts are placed into categories which makes them easy to find. Not only can you use them you can also modify them to your needs. Of course if you do improve these scripts give some feedback to Alan so that he might be able to incorporate it into the Powerpack.</p>
<p>The second one is Version 3 of the daily report or vCheck as it is called as of v3. I <a href="http://www.yellow-bricks.com/2009/07/16/alan-renoufs-the-powershell-guru-daily-report/">wrote</a> about version 1 and many people have downloaded it and are using it in their environment. The script just got better and a whole set of new features have been added. Alan was smart enough to ask around in the community what his report was lacking and incorporated all these tips in <a href="http://www.virtu-al.net/2009/11/04/vcheck-daily-report-v3/">Version 3</a> of vCheck(previously known as the Daily Report). Again, if you feel there is anything missing don&#8217;t hesitate to leave a comment and ask Alan if he can add it&#8230; Here&#8217;s the list of new features:</p>
<blockquote>
<ul>
<li>Status report to screen whilst running interactively</li>
<li>At the top of the script you can now turn off any areas you do not want to report on (this makes it faster to run)</li>
<li>VMs on Local storage has been changed to report VMs stored on datastores attached to only one host</li>
<li>VM active alerts</li>
<li>Cluster Active Alerts</li>
<li>If HA Cluster is set to use host datastore for swapfile, check the host has a swapfile location set</li>
<li>Host active Alerts</li>
<li>Dead SCSI Luns</li>
<li>VMs with over x amount of vCPUs</li>
<li>vSphere check: Slot Sizes</li>
<li>vSphere check: Outdated VM Hardware (Less than V7)</li>
<li>VMs in Inconsistent folders (the name of the folder is not the same as the name)</li>
<li>Added the number of issues to each title line</li>
</ul>
</blockquote>
<p>Carter can you please hand over your crown to Alan?! Thanks,</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/11/05/the-uncrowned-king-of-powercli-is-alan-renouf/">The uncrowned king of PowerCLI is Alan Renouf</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/11/05/the-uncrowned-king-of-powercli-is-alan-renouf/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Slot sizes</title>
		<link>http://www.yellow-bricks.com/2009/10/06/slot-sizes/</link>
		<comments>http://www.yellow-bricks.com/2009/10/06/slot-sizes/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 14:00:11 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[BC-DR]]></category>
		<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[PASS Syndication]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[deepdive]]></category>
		<category><![CDATA[ha]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=4105</guid>
		<description><![CDATA[<p>I&#8217;ve been receiving a lot of questions around slot sizes lately. Although I point everyone to my HA Deepdive post not everyone seems to understand what I am trying to explain. The foremost reason is that most people need to be able to visualize it; which is tough with slot sizes. Just to freshen up an outtake from the article: [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/10/06/slot-sizes/">Slot sizes</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been receiving a lot of questions around slot sizes lately. Although I point everyone to my <a href="http://www.yellow-bricks.com/vmware-high-availability-deepdiv/#HA-admission">HA Deepdive</a> post not everyone seems to understand what I am trying to explain. The foremost reason is that most people need to be able to visualize it; which is tough with slot sizes. Just to freshen up an outtake from the article:</p>
<blockquote><p>HA uses the highest CPU reservation of any given VM and the highest memory reservation of any given VM. If there is no reservation a default of 256Mhz will be used for the CPU slot and the memory overhead will be used for the memory slot!</p>
<p>If VM1 has 2GHZ and 1024GB reserved and VM2 has 1GHZ and 2048GB reserved the slot size for memory will be 2048MB+memory overhead and the slot size for CPU will be 2GHZ.</p>
<p><em>Now how does HA calculate how many slots are available per host?</em></p>
<p>Of course we need to know what the slot size for memory and CPU is first. Then we divide the total available CPU resources of a host by the CPU slot size and the total available Memory Resources of a host by the memory slot size. This leaves us with a slot size for both memory and CPU. The <span style="text-decoration: underline;">most restrictive number</span> is the amount of slots for this host. If you have 25 CPU slots but only 5 memory slots the amount of available slots for this host will be 5.</p></blockquote>
<p>The first question I got was around unbalanced clusters. Unbalanced would for instance be a cluster with 5 hosts of which one contains substantially more memory than the others. What would happen to the total amount of slots in a cluster of the following specs:</p>
<p>Five hosts, each host has 16GB of memory except for one host(esx5) which has recently been added and has 32GB of memory. One of the VMs in this cluster has 4CPUs and  4GB of memory, because there are no reservations set the memory overhead of 325MB is being used to calculate the memory slot sizes. (It&#8217;s more restrictive than the CPU slot size.)</p>
<p><img class="colorbox-4105"  src="http://farm3.static.flickr.com/2497/3975420032_f087801595.jpg" alt="" /></p>
<p>This results in 50 slots for esx01, esx02, esx03 and esx04. However, esx05 will have 100 slots available. Although this sounds great admission control rules the host out with the most slots as it takes the worst case scenario into account. In other words; end result:  <span style="text-decoration: underline;">200 slot cluster</span>.</p>
<p>With 5 hosts of 16GB, (5 x 50) &#8211; (1 x 50), the result would have been <span style="text-decoration: underline;">exactly</span> the same. To make a long story short: balance your clusters when using admission control!</p>
<p>The second question I received this week was around limiting the slotsizes with the advanced options das.slotCpuInMHz and/or das.slotMemInMB. If you need to use a high reservation for either CPU or Memory these options could definitely be useful, there is however something that you need to know. Check this diagram and see if you spot the problem, the das.slotMemInMB has been set to 1024MB.</p>
<p><img class="colorbox-4105"  src="http://farm4.static.flickr.com/3458/3975370356_4291a21c1e.jpg" alt="" /></p>
<p>Notice that the memory slotsize has been set to 1024MB. VM24 has a 4GB reservation set. Because of this VM24 spans 4 slots. As you might have noticed none of the hosts has 4 slots left. Although in total there are enough slots available; they are scattered and HA might not be able to actually boot VM24. Keep in mind that admission control does <span style="text-decoration: underline;">not</span> take scattering of slots into account. It does count 4 slots for VM24, but it will not verify the amount of available slots per host.</p>
<p>To make sure you will always have enough slots and know what your current situation is Alan Renouf wrote an <a href="http://www.virtu-al.net/2009/10/06/ha-slot-size-information/">excellent script</a>. This script reports the following:</p>
<blockquote><p>Example Output:</p>
<p>Cluster        : Production<br />
TotalSlots     : 32<br />
UsedSlots      : 10<br />
AvailableSlots : 22<br />
SlotNumvCPUs   : 1<br />
SlotCPUMHz     : 256<br />
SlotMemoryMB   : 118</p></blockquote>
<p>My article was a collaboration with Alan and I hope you find both article valuable. We&#8217;ve put a lot of time into making things as straight forward and simplistic as we possibly can.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/10/06/slot-sizes/">Slot sizes</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/10/06/slot-sizes/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Alan Renouf&#8217;s, the powershell guru, Daily Report</title>
		<link>http://www.yellow-bricks.com/2009/07/16/alan-renoufs-the-powershell-guru-daily-report/</link>
		<comments>http://www.yellow-bricks.com/2009/07/16/alan-renoufs-the-powershell-guru-daily-report/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 08:56:38 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=3514</guid>
		<description><![CDATA[<p>Alan Renouf is definitely on of the most active bloggers when we are talking about Powershell/PowerCLI. His posts are always educational and of a high quality. I love the one-liners but nothing, absolutely nothing, beats this awesome Daily Report script that Alan has just published. I&#8217;m not going to repost his full article because I think all of you should [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/07/16/alan-renoufs-the-powershell-guru-daily-report/">Alan Renouf&#8217;s, the powershell guru, Daily Report</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Alan Renouf is definitely on of the most active bloggers when we are talking about Powershell/PowerCLI. His posts are always educational and of a high quality. I love the one-liners but nothing, absolutely nothing, beats this awesome <a href="http://www.virtu-al.net/2009/07/14/powercli-daily-report/">Daily Report script</a> that Alan has just published. I&#8217;m not going to repost his full article because I think all of you should visit Alan&#8217;s website and give him feedback on the script so he can improve it.</p>
<blockquote><p><img class="colorbox-3514"  src="http://www.virtu-al.net/wp-content/uploads/2009/07/image_thumb7.png" alt="" width="501" height="165" /></p>
<p>There is a configurable section at the start of the script where you can set how many days old you would like your snapshots to be allowed in your infrastructure, anything over this will show in the report, it will even resolve the name ( the machine running the script must be part of an Active Directory Domain) so that you can forward this email on to them and ask them if they still need the snapshot.</p>
<p>The outcome of the script also contains:</p>
<ul>
<li>Datastores that have less than x% free space</li>
<li>VMs which have been created in the last x days and who created these</li>
<li>VMs which have been deleted and who deleted them</li>
<li>Any Virtual Center Events which have been logged during the given timeframe</li>
<li>Any VM’s which have no VMtools installed</li>
<li>The state of all VMware services on the vCenter server</li>
<li>Any Windows events from the Virtual center server which are related to VMware</li>
<li>Any VMs which have CD-Rom or Floppy Drive’s connected</li>
<li>Any hosts in Maintenance Mode</li>
<li>Any Hosts in a disconnected state</li>
</ul>
</blockquote>
<p>Schedule it and email it to your helpdesk on a daily base and let them check the outcome and archive it. It might come in handy sometime when you need to troubleshoot your environment, believe me it will&#8230; Thanks Alan, keep it up.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/07/16/alan-renoufs-the-powershell-guru-daily-report/">Alan Renouf&#8217;s, the powershell guru, Daily Report</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/07/16/alan-renoufs-the-powershell-guru-daily-report/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PowerCLI: Upgrading vHardware to vSphere Part 1: Templates</title>
		<link>http://www.yellow-bricks.com/2009/06/27/powercli-upgrading-vhardware-to-vsphere-part-1-templates/</link>
		<comments>http://www.yellow-bricks.com/2009/06/27/powercli-upgrading-vhardware-to-vsphere-part-1-templates/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 13:03:38 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=3393</guid>
		<description><![CDATA[<p>One of the blogs I&#8217;ve always enjoyed reading is ICT-Freak.nl. ICT-Freak is maintained by Arne Fokkema. Unfortunately Arne used to mix Dutch and English posts which means his blog is not aggregated on Planet V12n. This is why I wanted to point you out to the following awesome article: With the release of vSphere VMware introduced a new hardware level [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/06/27/powercli-upgrading-vhardware-to-vsphere-part-1-templates/">PowerCLI: Upgrading vHardware to vSphere Part 1: Templates</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>One of the blogs I&#8217;ve always enjoyed reading is <a href="http://ict-freak.nl/">ICT-Freak.nl</a>. ICT-Freak is maintained by Arne Fokkema. Unfortunately Arne used to mix Dutch and English posts which means his blog is not aggregated on Planet V12n. This is why I wanted to point you out to the following awesome article:</p>
<blockquote><p>With the release of vSphere VMware introduced a new hardware level for VM’s. De upgrade process to the new hardware level is already described on Scott Lowe’s blog: <a title="http://blog.scottlowe.org/2009/06/01/vsphere-virtual-machine-upgrade-process/" href="http://blog.scottlowe.org/2009/06/01/vsphere-virtual-machine-upgrade-process/">http://blog.scottlowe.org/2009/06/01/vsphere-virtual-machine-upgrade-process/.</a></p>
<p>I wanted to see if I could script this process with PowerCLI. My first goal was to upgrade al my templates.</p>
<p>The script does the following:</p>
<ul>
<li>Export template names to CSV</li>
<li>Convert templates back to VM’s</li>
<li>Check the vHardware version of the VM. If the hardware version is version 4 start the VM</li>
<li>When the VM is ready check the VMware Tools version. If the VMware Tools are old, the script will install the new version.</li>
<li>When the VMware Tools are Ok the VM gets a shutdown.</li>
<li>When the VM is down, the vHardware will be upgraded</li>
<li>The final step is converting the VM back to a template.</li>
</ul>
</blockquote>
<p>I stripped out the link to his script, please visit the <a href="http://ict-freak.nl/2009/06/27/powercli-upgrading-vhardware-to-vsphere-part-1-templates/#respond">source article</a> and download the script over there.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/06/27/powercli-upgrading-vhardware-to-vsphere-part-1-templates/">PowerCLI: Upgrading vHardware to vSphere Part 1: Templates</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/06/27/powercli-upgrading-vhardware-to-vsphere-part-1-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code Central</title>
		<link>http://www.yellow-bricks.com/2009/06/24/code-central/</link>
		<comments>http://www.yellow-bricks.com/2009/06/24/code-central/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 12:26:02 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=3373</guid>
		<description><![CDATA[<p>I visit the VMTN Communities daily and recently noticed a new section called Code Central. I didn&#8217;t pay attention to it cause I thought it was a private section but apparently it is not. Nava Davuluri introduced this new section and his role within VMware recently in a blog article: I’m Nava Davuluri, a new hire into Product Marketing. This [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/06/24/code-central/">Code Central</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I visit the VMTN Communities daily and recently noticed a new section called Code Central. I didn&#8217;t pay attention to it cause I thought it was a private section but apparently it is not. Nava Davuluri introduced this new section and his role within VMware recently in a blog article:</p>
<blockquote><p>I’m Nava Davuluri, a new hire into Product Marketing. This is my third month at VMware and things are off to a great start! One of the highlight events at my job so far includes attending the new vSphere launch, where I got to see business leaders in computer technology talk about how VMware products are increasing efficiency(performance, power and hardware) control( security and service levels) and choice (hardware, OS and application architecture) for the next-generation of cloud computing. This has given me a perspective on how important these products are and also made me realize the importance of my role.</p>
<p>I was hired to manage the sample code arena for developers and system administrators that make up the majority of VMware developer community. My biggest goal here is to make your life easier. Yes!, by creating a community based sample code site where it will be easy to create, collect and share sample codes in one single straight forward page.</p></blockquote>
<p>Some people have started adding scripts to this new section of the community already, take a look and contribute!</p>
<p><a href="http://communities.vmware.com/community/developer/codecentral">http://communities.vmware.com/community/developer/codecentral</a><br />
<a href="http://blogs.vmware.com/codecentral/">http://blogs.vmware.com/codecentral/</a></p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/06/24/code-central/">Code Central</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/06/24/code-central/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check if your license server is still running&#8230;</title>
		<link>http://www.yellow-bricks.com/2009/05/12/check-if-your-license-server-is-still-running/</link>
		<comments>http://www.yellow-bricks.com/2009/05/12/check-if-your-license-server-is-still-running/#comments</comments>
		<pubDate>Tue, 12 May 2009 14:42:56 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=3087</guid>
		<description><![CDATA[<p>After I wrote the licensing server post a couple of days back one of my colleagues(Thanks Horst!) was so kind to email me the following script. What it basically does is check every server for the availability of the license source. Of course it can be improved by adding for instance a check to see if the license service is [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/05/12/check-if-your-license-server-is-still-running/">Check if your license server is still running&#8230;</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>After I wrote the licensing server post a couple of days back one of my colleagues(Thanks Horst!) was so kind to email me the following script. What it basically does is check every server for the availability of the license source. Of course it can be improved by adding for instance a check to see if the license service is running on the license server and for instance email the results if there&#8217;s an error&#8230;<span id="more-3087"></span>I will leave that up to the powershell guru&#8217;s like mr Renouf. Here&#8217;s the script:</p>
<blockquote><p># This script checks the availability of the configured license source for all ESX hosts that are managed by a given VC<br />
# The script assumes that there is a user account that has the same password on all hosts<br />
# It is higly recommended to use an account that has a read-only role<br />
# The first credential pop-up is for VC, the second for ESX hosts<br />
connect-viserver &lt;VC&gt;<br />
$vmhosts = Get-VMHost<br />
Disconnect-VIServer -Confirm:$false<br />
$numhosts = $vmhosts.Length<br />
if ($numhosts -eq 0) { exit 1 }<br />
$credential = Get-Credential<br />
$availability = @{}<br />
$badcounter = 0;<br />
$hostcounter = 1<br />
$vmhosts | foreach {<br />
$progress = [int] ($hostcounter * 100 / $numhosts)<br />
Write-Progress &#8220;Checking license source availability&#8221; &#8220;Checking Host&#8221; -PercentComplete $progress -CurrentOperation &#8220;Checking host $_&#8221;<br />
connect-VIServer $_.name -Credential $credential<br />
$svcRef = new-object VMware.Vim.ManagedObjectReference;<br />
$svcRef.Type = &#8220;ServiceInstance&#8221;;<br />
$svcRef.Value = &#8220;ServiceInstance&#8221;;<br />
$serviceInstance = get-view $svcRef;<br />
$lic_ref = $serviceInstance.content.licensemanager;<br />
$LM = Get-View $lic_ref;<br />
$available = $LM.SourceAvailable<br />
$availability[$_.Name] = $available<br />
if ($available -eq $false ) { $badcounter++ }<br />
Disconnect-VIServer -Confirm:$false<br />
$hostcounter++<br />
}<br />
Write-Host $badcounter &#8221; Hosts without available license source.&#8221;<br />
foreach ($item in $availability.GetEnumerator() )<br />
{<br />
if ($item.value -eq $False ) {Write-Host &#8220;Host &#8221; $item.name &#8221; does not have a valid license source&#8221; }<br />
}</p></blockquote>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/05/12/check-if-your-license-server-is-still-running/">Check if your license server is still running&#8230;</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/05/12/check-if-your-license-server-is-still-running/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Speed up your powershell scripts</title>
		<link>http://www.yellow-bricks.com/2009/03/24/speed-up-your-powershell-scripts/</link>
		<comments>http://www.yellow-bricks.com/2009/03/24/speed-up-your-powershell-scripts/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 07:07:58 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=2571</guid>
		<description><![CDATA[<p>On the VI Toolkit blog there&#8217;s a great article for people like me. They explain how to speed up your scripts. I&#8217;m no powershell guru, and these kind of articles are more than welcome to boost my scripting skills. In short, it comes down to these three tips: Try to load as many objects as possible into arrays beforehand. Once [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/03/24/speed-up-your-powershell-scripts/">Speed up your powershell scripts</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>On the VI Toolkit blog there&#8217;s a <a href="http://blogs.vmware.com/vipowershell/2009/03/why-is-my-code-so-slow.html">great article</a> for people like me. They explain how to speed up your scripts. I&#8217;m no powershell guru, and these kind of articles are more than welcome to boost my scripting skills.</p>
<p>In short, it comes down to these three tips:</p>
<ol>
<li>Try to load as many objects as possible into arrays beforehand. Once you’ve got them loaded you can use them as arguments to multiple calls without having to resort to potentially expensive lookups every time.</li>
<li>Just like in sample 1 above, when you’ve loaded objects, use the objects directly rather than using their names. This is usually not hard as our cmdlets are designed to take object first-and-foremost, and names are supported just as a convenience.</li>
<li>If you absolutely need to load a single VM object by name, load it using the Get-VMFast function below. While this approach can certainly help, it’s not nearly as good as using the other two techniques mentioned above.</li>
</ol>
<p>Head over to the VI Toolkit blog and start reading.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/03/24/speed-up-your-powershell-scripts/">Speed up your powershell scripts</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/03/24/speed-up-your-powershell-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell and importing .CSV files</title>
		<link>http://www.yellow-bricks.com/2009/03/11/powershell-and-importing-csv-files/</link>
		<comments>http://www.yellow-bricks.com/2009/03/11/powershell-and-importing-csv-files/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 14:27:24 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[vcenter]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=2301</guid>
		<description><![CDATA[<p>I&#8217;ve been playing around with powershell yesterday. We needed to create over 100 VM&#8217;s and there&#8217;s no point in doing that all by hand. The customer provided us with a .csv file that contained specific info on these VM&#8217;s. It took me a while to figure out how to read the info.csv file and how to actually use it. But [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/03/11/powershell-and-importing-csv-files/">Powershell and importing .CSV files</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with powershell yesterday. We needed to create over 100 VM&#8217;s and there&#8217;s no point in doing that all by hand. The customer provided us with a .csv file that contained specific info on these VM&#8217;s. It took me a while to figure out how to read the info.csv file and how to actually use it. But as always it&#8217;s actually fairly simple and that&#8217;s why I decided to write it down:</p>
<p>Before we even start, the CSV should be formatted as follows:</p>
<p style="padding-left: 30px;">vmname,cluster<br />
VM001,HA-DRS-Yellow-Bricks</p>
<p>Read the complete csv file into a variable:</p>
<p style="padding-left: 30px;"><code>$csv_info = Import-Csv c:\scripts\info.csv</code></p>
<p>For every line in the csv variable do something:</p>
<p style="padding-left: 30px;"><code>foreach ($line in $csv_info) {<br />
write-host " This is virtual machine $($line.vmname) on cluster $($line.cluster)"<br />
}</code></p>
<p>This line would print something like this:</p>
<p style="padding-left: 30px;">This is virtual machine VM001 on cluster HA-DRS-Yellow-Bricks</p>
<p>As you noticed in the example above we used $line.vmname to get the name of the VM printed and $line.cluster for the cluster name, cool huh! BTW, Alan&#8217;s <a href="http://virtu-al.net/Downloads/VIToolkitQuickReferenceGuide.pdf">quick reference guide</a> really helped me out!</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/03/11/powershell-and-importing-csv-files/">Powershell and importing .CSV files</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/03/11/powershell-and-importing-csv-files/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Set Disk.UseDeviceReset with powershell</title>
		<link>http://www.yellow-bricks.com/2009/03/09/set-diskusedevicereset-with-powershell/</link>
		<comments>http://www.yellow-bricks.com/2009/03/09/set-diskusedevicereset-with-powershell/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 13:11:28 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=2279</guid>
		<description><![CDATA[<p>Last week the well known powershell guru Alan Renouf helped me out with a script for enabling virtualized MMU. This week I needed to set Disk.UseDeviceReset to &#8220;0&#8243; on at least 60 hosts. (Check the link for more info on why!) No point in doing it all by hand when the VI Toolkit can help you out and set this [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/03/09/set-diskusedevicereset-with-powershell/">Set Disk.UseDeviceReset with powershell</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p><del>Last week the well known powershell guru <a href="http://www.virtu-al.net/2009/03/05/setting-mmu-for-your-vms/">Alan Renouf</a> helped me out with a script for enabling virtualized MMU. This week I needed to set <a href="http://www.yellow-bricks.com/2008/07/21/queuedepth-and-whats-next/">Disk.UseDeviceReset</a> to &#8220;0&#8243; on at least 60 hosts. (Check the link for more info on why!) No point in doing it all by hand when the <a href="http://www.vmware.com/go/powershell">VI Toolkit</a> can help you out and set this parameter for the entire environment with just one line:</del></p>
<p><del></p>
<p style="padding-left: 30px;"><code>Get-VMHost | Set-VMHostAdvancedConfiguration -Name Disk.UseDeviceReset -Value 0</code></p>
<p></del></p>
<p><del>I&#8217;m really starting to get excited about the VI Toolkit, thanks to guys like Alan and of course the VMworld VI Toolkit Lab I did a couple of weeks ago. With the <a href="http://virtu-al.net/Downloads/VIToolkitQuickReferenceGuide.pdf">quick reference guide</a> that Alan created it&#8217;s very simple to come up with one-liners like the one above.</del></p>
<p>DEPRECATED See <a href="http://www.yellow-bricks.com/2011/04/13/disk-usedevicereset-do-i-really-need-to-set-it/">this article</a> for more info.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/03/09/set-diskusedevicereset-with-powershell/">Set Disk.UseDeviceReset with powershell</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/03/09/set-diskusedevicereset-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Balancing LUN paths with powershell</title>
		<link>http://www.yellow-bricks.com/2009/01/30/balancing-lun-paths-with-powershell/</link>
		<comments>http://www.yellow-bricks.com/2009/01/30/balancing-lun-paths-with-powershell/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 05:31:36 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=1733</guid>
		<description><![CDATA[<p>Just noticed this pingback. The topic title &#8220;Balancing LUN paths on your ESX hosts with powershell&#8221; sounded promising so I headed over. Justin Emerson is the owner of the blog and he wrote a short but effective script that changes the active paths on your active/active SAN(FIXED). After watching this video that was posted by the VI Toolkit team, I [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/30/balancing-lun-paths-with-powershell/">Balancing LUN paths with powershell</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Just noticed <a href="http://www.yellow-bricks.com/2008/04/01/load-balancing-activeactive-sans/#comment-2315">this</a> pingback. The topic title &#8220;<a href="http://vmjunkie.wordpress.com/2009/01/29/balancing-lun-paths-on-your-esx-hosts-with-powershell/">Balancing LUN paths on your ESX hosts with powershell</a>&#8221; sounded promising so I headed over. Justin Emerson is the owner of the blog and he wrote a short but effective script that changes the active paths on your active/active SAN(FIXED).</p>
<blockquote><p>After watching <a href="http://www.vimeo.com/2983782" target="_blank">this video</a> that was posted by the <a href="http://blogs.vmware.com/vipowershell/2009/01/vi-toolkit-15-released.html" target="_blank">VI Toolkit team</a>, I immediately thought of <a href="../2008/04/01/load-balancing-activeactive-sans/" target="_blank">this script</a> that was posted quite a while back on <a href="../" target="_blank">Yellow Bricks</a>. I decided to try to recreate this script in PowerShell, and while I was at it expand it so it would modify all nodes in a cluster at once. As such I wrote the following script. Please feel free to give feedback or make modifications! You can download it from my <a href="http://cid-2f7d65f21b4aa7a0.skydrive.live.com/browse.aspx/.Public" target="_blank">Sky Drive</a> or check it out <a href="http://vmjunkie.wordpress.com/2009/01/29/balancing-lun-paths-on-your-esx-hosts-with-powershell/">here.</a></p></blockquote>
<p>Head over to <a href="http://vmjunkie.wordpress.com/2009/01/29/balancing-lun-paths-on-your-esx-hosts-with-powershell/">Justin&#8217;s site</a>, pick up the script and give it a try&#8230; and most importantly give Justin feedback on the results and what could be improved!</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2009/01/30/balancing-lun-paths-with-powershell/">Balancing LUN paths with powershell</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2009/01/30/balancing-lun-paths-with-powershell/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

