<?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: VMware Powershell script &#8211; remove connected iso</title>
	<atom:link href="http://virtualfuture.info/2008/07/powershell-remove-connected-iso/feed/" rel="self" type="application/rss+xml" />
	<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 14:53:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marq</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-3047</link>
		<dc:creator>Marq</dc:creator>
		<pubDate>Wed, 17 Feb 2010 22:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-3047</guid>
		<description>Is it at all possile to that the CD Removal ISO Script and report on VMs that have a CD ISO mounted -- I don&#039;t want to remove just identify</description>
		<content:encoded><![CDATA[<p>Is it at all possile to that the CD Removal ISO Script and report on VMs that have a CD ISO mounted &#8212; I don&#8217;t want to remove just identify</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Woods</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-263</link>
		<dc:creator>Chris Woods</dc:creator>
		<pubDate>Wed, 20 Aug 2008 11:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-263</guid>
		<description>Hi Rob

Hows the script to read from a csv file and create VM&#039;s based on a template going. I&#039;ve got as far as creating the VM&#039;s from a csv file but struggling with creating them from a template.</description>
		<content:encoded><![CDATA[<p>Hi Rob</p>
<p>Hows the script to read from a csv file and create VM&#8217;s based on a template going. I&#8217;ve got as far as creating the VM&#8217;s from a csv file but struggling with creating them from a template.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan van Zanten</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-202</link>
		<dc:creator>Johan van Zanten</dc:creator>
		<pubDate>Wed, 30 Jul 2008 10:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-202</guid>
		<description>Hi Rob,

I have read the storage-path-lo article on the VMware blog and found in an facinating process.

The one you are working is just the function Sven asked about, I am axious to see what&#039;s the result of that. :)

I prefer the simple oneliner scripting thingies because they show the real power of powershell and are much easier to understand for people who are starting with scripting / powershell</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>I have read the storage-path-lo article on the VMware blog and found in an facinating process.</p>
<p>The one you are working is just the function Sven asked about, I am axious to see what&#8217;s the result of that. <img src='http://virtualfuture.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I prefer the simple oneliner scripting thingies because they show the real power of powershell and are much easier to understand for people who are starting with scripting / powershell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan van Zanten</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-200</link>
		<dc:creator>Johan van Zanten</dc:creator>
		<pubDate>Wed, 30 Jul 2008 06:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-200</guid>
		<description>Hi Sven,

What I like about powershell is the simplicity of the commands and the ease to create powerfull single line scripts, aka one-liners.

That&#039;s easy as well but it took a little work:
first I put all the snapshots into a single variable with this command:
$snap = get-snapshot -vm * this variable can be used as input for the actual removal:
remove-snapshot -snapshot $snap.

you can combine the two commands on a single line:
$snap=get-snapshot -vm * ; remove-snapshot -snapshot $snap

on the otherhand I cannot emphasize the importace of being carefull with such powerfull commands !

that&#039;s all</description>
		<content:encoded><![CDATA[<p>Hi Sven,</p>
<p>What I like about powershell is the simplicity of the commands and the ease to create powerfull single line scripts, aka one-liners.</p>
<p>That&#8217;s easy as well but it took a little work:<br />
first I put all the snapshots into a single variable with this command:<br />
$snap = get-snapshot -vm * this variable can be used as input for the actual removal:<br />
remove-snapshot -snapshot $snap.</p>
<p>you can combine the two commands on a single line:<br />
$snap=get-snapshot -vm * ; remove-snapshot -snapshot $snap</p>
<p>on the otherhand I cannot emphasize the importace of being carefull with such powerfull commands !</p>
<p>that&#8217;s all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Mokkink</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-198</link>
		<dc:creator>Rob Mokkink</dc:creator>
		<pubDate>Tue, 29 Jul 2008 16:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-198</guid>
		<description>Hi Johan,

I created a couple of scripts, for example the HBA loadbalance script, see http://blogs.vmware.com/vipowershell/2008/07/storage-path-lo.html

Currently i am busy creating a script that read a .csv file, creates a VM based on a template. But it can also poweroff and remove a VM and redeploy it.

Also the script has the possibility to be put in a resourcepool or in the clusters default resourcepool.
Ask Matthijs about it, he is my current collegue at project we are working on right now.</description>
		<content:encoded><![CDATA[<p>Hi Johan,</p>
<p>I created a couple of scripts, for example the HBA loadbalance script, see <a href="http://blogs.vmware.com/vipowershell/2008/07/storage-path-lo.html" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/blogs.vmware.com/vipowershell/2008/07/storage-path-lo.html?referer=');">http://blogs.vmware.com/vipowershell/2008/07/storage-path-lo.html</a></p>
<p>Currently i am busy creating a script that read a .csv file, creates a VM based on a template. But it can also poweroff and remove a VM and redeploy it.</p>
<p>Also the script has the possibility to be put in a resourcepool or in the clusters default resourcepool.<br />
Ask Matthijs about it, he is my current collegue at project we are working on right now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven Huisman</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-196</link>
		<dc:creator>Sven Huisman</dc:creator>
		<pubDate>Tue, 29 Jul 2008 11:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-196</guid>
		<description>Johan,

how about this:
list al VM&#039;s which has snapshots, then delete those snapshots.</description>
		<content:encoded><![CDATA[<p>Johan,</p>
<p>how about this:<br />
list al VM&#8217;s which has snapshots, then delete those snapshots.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan van Zanten</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-195</link>
		<dc:creator>Johan van Zanten</dc:creator>
		<pubDate>Tue, 29 Jul 2008 11:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-195</guid>
		<description>Hi Sven,

That&#039;s easy:
First you need to connect to a VI or ESX server with the Connect-VIServer (like Rob pointed out)commandlet

next you use the get-networkadapter commandlet en pipes the output to the set-networkadapter 
the complete commandline will be:
Get-NetworkAdapter -VM * &#124;set-networkadapter -connected $false

the otherone I will explain in a future article

grtx Johan</description>
		<content:encoded><![CDATA[<p>Hi Sven,</p>
<p>That&#8217;s easy:<br />
First you need to connect to a VI or ESX server with the Connect-VIServer (like Rob pointed out)commandlet</p>
<p>next you use the get-networkadapter commandlet en pipes the output to the set-networkadapter<br />
the complete commandline will be:<br />
Get-NetworkAdapter -VM * |set-networkadapter -connected $false</p>
<p>the otherone I will explain in a future article</p>
<p>grtx Johan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven Huisman</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-194</link>
		<dc:creator>Sven Huisman</dc:creator>
		<pubDate>Tue, 29 Jul 2008 11:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-194</guid>
		<description>Hi Johan,

Can you create a powershell script that disconnects the network interfaces in all virtual machines? This can be usefull in case of a virus-outbreak.

Another script that would be usefull is a script that reads out a CSV or TXT file (which contains certain parameters like VM-name, memory size, network, template to use) and then uses those parameters to deploy a new VM.</description>
		<content:encoded><![CDATA[<p>Hi Johan,</p>
<p>Can you create a powershell script that disconnects the network interfaces in all virtual machines? This can be usefull in case of a virus-outbreak.</p>
<p>Another script that would be usefull is a script that reads out a CSV or TXT file (which contains certain parameters like VM-name, memory size, network, template to use) and then uses those parameters to deploy a new VM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan van Zanten</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-193</link>
		<dc:creator>Johan van Zanten</dc:creator>
		<pubDate>Tue, 29 Jul 2008 11:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-193</guid>
		<description>Hi Rob,

Thanx for the comment a typo can easily be made. In reply of your comment are there any automated tasks you would to have scripted or do you have by any means usefull scripts ?

Johan</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>Thanx for the comment a typo can easily be made. In reply of your comment are there any automated tasks you would to have scripted or do you have by any means usefull scripts ?</p>
<p>Johan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Mokkink</title>
		<link>http://virtualfuture.info/2008/07/powershell-remove-connected-iso/comment-page-1/#comment-191</link>
		<dc:creator>Rob Mokkink</dc:creator>
		<pubDate>Tue, 29 Jul 2008 10:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://virtualfuture.info/?p=127#comment-191</guid>
		<description>Het moet zijn connect-viserver</description>
		<content:encoded><![CDATA[<p>Het moet zijn connect-viserver</p>
]]></content:encoded>
	</item>
</channel>
</rss>
