<?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: Call for Script Ideas: VMware PowerShell Toolkit</title>
	<atom:link href="http://halr9000.com/article/464/feed" rel="self" type="application/rss+xml" />
	<link>http://halr9000.com/article/464</link>
	<description>(powershell &#38; other stuff)</description>
	<lastBuildDate>Tue, 16 Mar 2010 02:01:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7104</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7104</guid>
		<description>I&#039;m going to go ahead and close comments on this post as the book is done and published.  You can still reach out to me in other ways.  For PowerCLI (the new name of the VI Toolkit) advice, your best best for a prompt answer is to visit the forums which can be found at http://vmware.com/go/powershell.</description>
		<content:encoded><![CDATA[<p>I&#8217;m going to go ahead and close comments on this post as the book is done and published.  You can still reach out to me in other ways.  For PowerCLI (the new name of the VI Toolkit) advice, your best best for a prompt answer is to visit the forums which can be found at <a href="http://vmware.com/go/powershell" rel="nofollow">http://vmware.com/go/powershell</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahendra</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7103</link>
		<dc:creator>Mahendra</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7103</guid>
		<description>I am looking at mounting a vmdisk  and modifying some required to get the vm ready for deployment and later cloning the server, any help will be appreciated how I can copy the files after the cloning or before cloning</description>
		<content:encoded><![CDATA[<p>I am looking at mounting a vmdisk  and modifying some required to get the vm ready for deployment and later cloning the server, any help will be appreciated how I can copy the files after the cloning or before cloning</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Drolshagen</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7089</link>
		<dc:creator>Hans Drolshagen</dc:creator>
		<pubDate>Wed, 27 May 2009 04:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7089</guid>
		<description>It would be nice to create OS Customization Specs with static IP information in them.  Currently, I don&#039;t see any option to specify static IP config parameters (IP, NetMask, Gateway) in New-OSCustomizationSpec.  Any thoughts?</description>
		<content:encoded><![CDATA[<p>It would be nice to create OS Customization Specs with static IP information in them.  Currently, I don&#8217;t see any option to specify static IP config parameters (IP, NetMask, Gateway) in New-OSCustomizationSpec.  Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilguybob</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7080</link>
		<dc:creator>ilguybob</dc:creator>
		<pubDate>Tue, 12 May 2009 19:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7080</guid>
		<description>It would be great if you could come up with a script to delete virtual machines and remove them from inventory. We schedule weekly cloning of our virtual servers to a backup ESX box, however, it will not overwrite existing clones. So, we have to manually delete them from the backup box every week before the scheduled cloning kicks in. I wrote a script to delete them from disk, but they still appear in the VC as &quot;orphaned&quot;, and you have to right click it and remove it from inventory.</description>
		<content:encoded><![CDATA[<p>It would be great if you could come up with a script to delete virtual machines and remove them from inventory. We schedule weekly cloning of our virtual servers to a backup ESX box, however, it will not overwrite existing clones. So, we have to manually delete them from the backup box every week before the scheduled cloning kicks in. I wrote a script to delete them from disk, but they still appear in the VC as &#8220;orphaned&#8221;, and you have to right click it and remove it from inventory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7051</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Thu, 12 Mar 2009 23:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7051</guid>
		<description>A lot has happened since I made this first post.  Check out this page for some awesome scripts, at least two of them dealing with documenting: http://www.vladan.fr/top-10-powershell-scripts-for-virtual-infrastructure/</description>
		<content:encoded><![CDATA[<p>A lot has happened since I made this first post.  Check out this page for some awesome scripts, at least two of them dealing with documenting: <a href="http://www.vladan.fr/top-10-powershell-scripts-for-virtual-infrastructure/" rel="nofollow">http://www.vladan.fr/top-10-powershell-scripts-for-virtual-infrastructure/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7050</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 12 Mar 2009 22:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7050</guid>
		<description>Looking for the ultimate documentation script to document everything under the sun in VI Datacenter if you can think of it, doc it.</description>
		<content:encoded><![CDATA[<p>Looking for the ultimate documentation script to document everything under the sun in VI Datacenter if you can think of it, doc it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wholmes</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7035</link>
		<dc:creator>wholmes</dc:creator>
		<pubDate>Fri, 20 Feb 2009 21:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7035</guid>
		<description>How about a script to deploy a thin vm from a template on an nfs datastore.</description>
		<content:encoded><![CDATA[<p>How about a script to deploy a thin vm from a template on an nfs datastore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7026</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Sat, 07 Feb 2009 16:19:43 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7026</guid>
		<description>But can configureesx.ps1 Read an existing esx host&#039;s config, let you tweak, then redeploy that config to a fresh install?</description>
		<content:encoded><![CDATA[<p>But can configureesx.ps1 Read an existing esx host&#8217;s config, let you tweak, then redeploy that config to a fresh install?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Langenhan</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7012</link>
		<dc:creator>Daniel Langenhan</dc:creator>
		<pubDate>Fri, 23 Jan 2009 05:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7012</guid>
		<description>Search the Inet for &quot;configureESX.ps1&quot;
Thats should do :)</description>
		<content:encoded><![CDATA[<p>Search the Inet for &#8220;configureESX.ps1&#8243;<br />
Thats should do <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Langenhan</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-7011</link>
		<dc:creator>Daniel Langenhan</dc:creator>
		<pubDate>Fri, 23 Jan 2009 05:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-7011</guid>
		<description>There you go	

$newtemp = New-VM -Name $template -VMHost $esxhost -Datastore $datastore -MemoryMB 4096 -NumCpu 2  -GuestId winLonghorn64Guest -cd  -Description (Get-Date)
	$newtemp&#124;Get-CDDrive &#124;Set-CDDrive -Connected $true -IsoPath $isopath -StartConnected $true -Confirm:$false &#124;Out-Null
	New-HardDisk -vm $newtemp -CapacityKB (60*1024*1024) -ThinProvisioned &#124;Out-Null
	New-HardDisk -vm $newtemp -CapacityKB (20*1024*1024) -ThinProvisioned &#124;Out-Null
	$vmview=$newtemp&#124;get-view
	$vmview.MarkAsTemplate()</description>
		<content:encoded><![CDATA[<p>There you go	</p>
<p>$newtemp = New-VM -Name $template -VMHost $esxhost -Datastore $datastore -MemoryMB 4096 -NumCpu 2  -GuestId winLonghorn64Guest -cd  -Description (Get-Date)<br />
	$newtemp|Get-CDDrive |Set-CDDrive -Connected $true -IsoPath $isopath -StartConnected $true -Confirm:$false |Out-Null<br />
	New-HardDisk -vm $newtemp -CapacityKB (60*1024*1024) -ThinProvisioned |Out-Null<br />
	New-HardDisk -vm $newtemp -CapacityKB (20*1024*1024) -ThinProvisioned |Out-Null<br />
	$vmview=$newtemp|get-view<br />
	$vmview.MarkAsTemplate()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6928</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Thu, 09 Oct 2008 03:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6928</guid>
		<description>I hesitate to call it a script, it&#039;s more of a two-liner, but here you go.  :)

&lt;code&gt;$MemOverheadCol = @{ Name = &quot;MemoryOverhead&quot;; Expr = { $_.Runtime.MemoryOverhead / 1MB } }
Get-VM &#124; Get-View &#124; Select-Object Name, $MemOverheadCol &#124; Export-Csv file.csv -noType&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I hesitate to call it a script, it&#8217;s more of a two-liner, but here you go.  <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code>$MemOverheadCol = @{ Name = "MemoryOverhead"; Expr = { $_.Runtime.MemoryOverhead / 1MB } }<br />
Get-VM | Get-View | Select-Object Name, $MemOverheadCol | Export-Csv file.csv -noType</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justmemate</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6927</link>
		<dc:creator>justmemate</dc:creator>
		<pubDate>Wed, 08 Oct 2008 21:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6927</guid>
		<description>These posts have really got me interested in powershell.
Stumbled upon this site while looking for a template deploy method that uses the customization files.  Winner !   Now added to my RSS.

I&#039;ve also been searching around trying to find a script to export the memory overhead figures now displayed in the VI client out to CSV for our capacity management database.
I&#039;ll stick a post in the communities, but given the knowledge here i thought i&#039;d start here.
Any thoughts appreciated..</description>
		<content:encoded><![CDATA[<p>These posts have really got me interested in powershell.<br />
Stumbled upon this site while looking for a template deploy method that uses the customization files.  Winner !   Now added to my RSS.</p>
<p>I&#8217;ve also been searching around trying to find a script to export the memory overhead figures now displayed in the VI client out to CSV for our capacity management database.<br />
I&#8217;ll stick a post in the communities, but given the knowledge here i thought i&#8217;d start here.<br />
Any thoughts appreciated..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6901</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Fri, 29 Aug 2008 14:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6901</guid>
		<description>Most definitely.  

# list all templates in a single folder
get-folder &quot;Templates&quot; &#124; get-template

Datastores are not associated with clusters, they are attached to host servers, so we have to do this:
# list datastores avail to cluster member host server
(get-cluster &quot;DRS cluster Foo&quot; &#124; get-vmhost)[0] &#124; get-datastore

The (blah)[0] stuff grabs only the first host server in the cluster.  You could pipe get-vmhost to get-datastore, but you&#039;d get duplicate results.</description>
		<content:encoded><![CDATA[<p>Most definitely.  </p>
<p># list all templates in a single folder<br />
get-folder &#8220;Templates&#8221; | get-template</p>
<p>Datastores are not associated with clusters, they are attached to host servers, so we have to do this:<br />
# list datastores avail to cluster member host server<br />
(get-cluster &#8220;DRS cluster Foo&#8221; | get-vmhost)[0] | get-datastore</p>
<p>The (blah)[0] stuff grabs only the first host server in the cluster.  You could pipe get-vmhost to get-datastore, but you&#8217;d get duplicate results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: new-to-powershell</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6900</link>
		<dc:creator>new-to-powershell</dc:creator>
		<pubDate>Fri, 29 Aug 2008 13:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6900</guid>
		<description>is it possible to create a script that will  display list of available templates (all in &quot;template&quot; folder) and list of all clusters and a list of all datastore that are available to the chosen cluster - so that a remote admin can simply deploy a vm from a template he selected?</description>
		<content:encoded><![CDATA[<p>is it possible to create a script that will  display list of available templates (all in &#8220;template&#8221; folder) and list of all clusters and a list of all datastore that are available to the chosen cluster &#8211; so that a remote admin can simply deploy a vm from a template he selected?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VMWareLearner</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6899</link>
		<dc:creator>VMWareLearner</dc:creator>
		<pubDate>Thu, 28 Aug 2008 19:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6899</guid>
		<description>Yes, that is a bummer, when you have to deploy 30 VMs at a time with static IP addresses.

When I did try with a known good customization tempate and the following command line command line, 
get-template w2k3stdR2-template &#124; new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD

the process runs to about 95% then fails with this error:
8/28/2008 3:48:01 PM	New-VM	BB572FA5-355A-4225-BBEF-8A035305A24E	The operation for the entity vm-2663 failed with the following message: &quot;Customization failed.&quot;	
At line 3, position 99
get-template w2k3stdR2-template &#124; new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD

Thoughts?</description>
		<content:encoded><![CDATA[<p>Yes, that is a bummer, when you have to deploy 30 VMs at a time with static IP addresses.</p>
<p>When I did try with a known good customization tempate and the following command line command line,<br />
get-template w2k3stdR2-template | new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD</p>
<p>the process runs to about 95% then fails with this error:<br />
8/28/2008 3:48:01 PM	New-VM	BB572FA5-355A-4225-BBEF-8A035305A24E	The operation for the entity vm-2663 failed with the following message: &#8220;Customization failed.&#8221;<br />
At line 3, position 99<br />
get-template w2k3stdR2-template | new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6898</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Thu, 28 Aug 2008 18:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6898</guid>
		<description>Right now you actually can&#039;t change the IP during a clone using the VI Toolkit.  This is a big glaring hole unfortunately.

Template is a VM that is marked as a template.  It&#039;s identical underneath the covers.  But you can do more stuff with a template with regards to VM deployment.</description>
		<content:encoded><![CDATA[<p>Right now you actually can&#8217;t change the IP during a clone using the VI Toolkit.  This is a big glaring hole unfortunately.</p>
<p>Template is a VM that is marked as a template.  It&#8217;s identical underneath the covers.  But you can do more stuff with a template with regards to VM deployment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VMWareLearner</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6897</link>
		<dc:creator>VMWareLearner</dc:creator>
		<pubDate>Thu, 28 Aug 2008 18:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6897</guid>
		<description>How about changing the IP address during the cloning process?
What is the difference between a Template and a virtual machine?</description>
		<content:encoded><![CDATA[<p>How about changing the IP address during the cloning process?<br />
What is the difference between a Template and a virtual machine?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Dearden</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6866</link>
		<dc:creator>Chris Dearden</dc:creator>
		<pubDate>Fri, 15 Aug 2008 16:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6866</guid>
		<description>The London one - They mentioned the book - look forward to its release !</description>
		<content:encoded><![CDATA[<p>The London one &#8211; They mentioned the book &#8211; look forward to its release !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6865</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Fri, 15 Aug 2008 14:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6865</guid>
		<description>I like it.  That would not be very hard to do, I think.  Which user group meeting was this?</description>
		<content:encoded><![CDATA[<p>I like it.  That would not be very hard to do, I think.  Which user group meeting was this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Dearden</title>
		<link>http://halr9000.com/article/464/comment-page-1#comment-6864</link>
		<dc:creator>Chris Dearden</dc:creator>
		<pubDate>Fri, 15 Aug 2008 11:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6864</guid>
		<description>A slight variation on the templating one.

I&#039;d like to maintain a machine as a live template - sitting idle on my network , picking up security updates / build tweaks and AV data.

Untill &quot;hot cloning to template&quot; is available ( not gone to update 2 yet ) I&#039;m looking for a script that I can run as a scheduled task to shut a specified guest down , and clone to a template ( overwriting the last template ), then boot it back up.

I&#039;m a complete powershell virgin but have seen the light at a recent usergroup meeting :)</description>
		<content:encoded><![CDATA[<p>A slight variation on the templating one.</p>
<p>I&#8217;d like to maintain a machine as a live template &#8211; sitting idle on my network , picking up security updates / build tweaks and AV data.</p>
<p>Untill &#8220;hot cloning to template&#8221; is available ( not gone to update 2 yet ) I&#8217;m looking for a script that I can run as a scheduled task to shut a specified guest down , and clone to a template ( overwriting the last template ), then boot it back up.</p>
<p>I&#8217;m a complete powershell virgin but have seen the light at a recent usergroup meeting <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
