<?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: Set VMware Snapshot Location with Powershell</title>
	<atom:link href="http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/</link>
	<description>Using Powershell for (virtually) everything!</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:41:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Carl Knox</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-29212</link>
		<dc:creator>Carl Knox</dc:creator>
		<pubDate>Fri, 22 Apr 2011 02:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-29212</guid>
		<description>My previous email might be misleading. You should be at a PowerCLI prompt, not a PowerShell prompt.

PowerCLI&gt;&gt; .”C:\Scripts\Set-VMSnapshotLocation.ps1″
PowerCLI&gt;&gt; Set-VMSnapshotLocation -vm vm01 -location “[datastore]”
PowerCLI&gt;&gt; Set-VMSnapshotLocation -vm vm02 -reset</description>
		<content:encoded><![CDATA[<p>My previous email might be misleading. You should be at a <a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>PowerCLI</a> prompt, not a <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target='_blank'>PowerShell</a> prompt.</p>
<p><a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>PowerCLI</a>&gt;&gt; .”C:\Scripts\Set-VMSnapshotLocation.ps1″<br />
<a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>PowerCLI</a>&gt;&gt; Set-VMSnapshotLocation -vm vm01 -location “[datastore]”<br />
<a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>PowerCLI</a>&gt;&gt; Set-VMSnapshotLocation -vm vm02 -reset
<p style="opacity:0.5;padding:0;margin:0;display:inline;"><sub><a href="http://www.janhvizdak.com/make-donation-cross-linker-plugin-wordpress.php" onclick="window.open('http://www.janhvizdak.com/make-donation-cross-linker-plugin-wordpress.php'); return false;" target="_blank" style="cursor:help;"><b>&#187;crosslinked&#171;</b></a></sub></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Knox</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-29202</link>
		<dc:creator>Carl Knox</dc:creator>
		<pubDate>Thu, 21 Apr 2011 21:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-29202</guid>
		<description>The key to adding the function was the fully qualified path. Using .\Set-VMSnapshotLocation.ps1 from my scripts folder did not add the function to my session.

You should verify the function was added before executing...

PS&gt;&gt; get-childitem function:set*</description>
		<content:encoded><![CDATA[<p>The key to adding the function was the fully qualified path. Using .\Set-VMSnapshotLocation.ps1 from my scripts folder did not add the function to my session.</p>
<p>You should verify the function was added before executing&#8230;</p>
<p>PS&gt;&gt; get-childitem function:set*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Knox</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-29201</link>
		<dc:creator>Carl Knox</dc:creator>
		<pubDate>Thu, 21 Apr 2011 21:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-29201</guid>
		<description>I struggled a bit with getting this to work. Here&#039;s how I got it to work.

PS&gt;&gt; .&quot;C:\Scripts\Set-VMSnapshotLocation.ps1&quot;
PS&gt;&gt; Set-VMSnapshotLocation -vm vm01 -location &quot;datastore&quot;
PS&gt;&gt; Set-VMSnapshotLocation -vm vm01 -location &quot;datastore&quot;

The first line adds the function(s) within the .ps1 file to your PS session, which can then be called directly with parameters. I&#039;ll probably rename the .sp1 file to something shorter, in my environment.</description>
		<content:encoded><![CDATA[<p>I struggled a bit with getting this to work. Here&#8217;s how I got it to work.</p>
<p>PS&gt;&gt; .&#8221;C:\Scripts\Set-VMSnapshotLocation.ps1&#8243;<br />
PS&gt;&gt; Set-VMSnapshotLocation -vm vm01 -location &#8220;datastore&#8221;<br />
PS&gt;&gt; Set-VMSnapshotLocation -vm vm01 -location &#8220;datastore&#8221;</p>
<p>The first line adds the function(s) within the .ps1 file to your PS session, which can then be called directly with parameters. I&#8217;ll probably rename the .sp1 file to something shorter, in my environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd Rorie</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-28196</link>
		<dc:creator>Todd Rorie</dc:creator>
		<pubDate>Tue, 05 Apr 2011 14:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-28196</guid>
		<description>Running the command on one VM comes back with Set-VMSnapshotLocation is not recognized as the name of a cmdlet.  We are running 4.1 U1.  Cannot find any mention of this cmdlet anywhere except your site.  Something I need to add to PowerCLI to get this to work?  Thanks.</description>
		<content:encoded><![CDATA[<p>Running the command on one VM comes back with Set-VMSnapshotLocation is not recognized as the name of a cmdlet.  We are running 4.1 U1.  Cannot find any mention of this cmdlet anywhere except your site.  Something I need to add to <a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>PowerCLI</a> to get this to work?  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie B</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-26781</link>
		<dc:creator>Eddie B</dc:creator>
		<pubDate>Tue, 15 Mar 2011 07:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-26781</guid>
		<description>Love the script - thanks.

Your script sets the workingdir which affects both swap and snapshots, but I&#039;d like to keep my swap files with the vm. Do you know how to set sched.swap.dir on-the-fly? I can only find references to editing the vmx file.</description>
		<content:encoded><![CDATA[<p>Love the script &#8211; thanks.</p>
<p>Your script sets the workingdir which affects both swap and snapshots, but I&#8217;d like to keep my swap files with the vm. Do you know how to set sched.swap.dir on-the-fly? I can only find references to editing the vmx file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-23992</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Tue, 18 Jan 2011 17:29:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-23992</guid>
		<description>where did you get the Set-VMSnapshotLocation cmdlet?</description>
		<content:encoded><![CDATA[<p>where did you get the Set-VMSnapshotLocation cmdlet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-18388</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 15 Aug 2010 12:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-18388</guid>
		<description>It does not show any output. It updates the vmx file. You can check it worked by looking at the working location in Edit Settings.
Hugo</description>
		<content:encoded><![CDATA[<p>It does not show any output. It updates the vmx file. You can check it worked by looking at the working location in Edit Settings.<br />
Hugo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-18371</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Sun, 15 Aug 2010 01:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-18371</guid>
		<description>Does this script work with vCenter 4.1?  When I run it, nothing happens.</description>
		<content:encoded><![CDATA[<p>Does this script work with vCenter 4.1?  When I run it, nothing happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Changing snapshot location without VM downtime &#171; a CraZy PeNguIn</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-12877</link>
		<dc:creator>Changing snapshot location without VM downtime &#171; a CraZy PeNguIn</dc:creator>
		<pubDate>Tue, 15 Dec 2009 19:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-12877</guid>
		<description>[...] Get the script and more info here [...]</description>
		<content:encoded><![CDATA[<p>[...] Get the script and more info here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/comment-page-1/#comment-12110</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 24 Nov 2009 12:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=411#comment-12110</guid>
		<description>Hi Wolfi,
Tanks.
I don&#039;t have the time to write a script for you right away. But search for PowerCLI Snapshots Get-VIEvent and you might find something.
I know the info you need is not included in the properties of a snapshot, so you have to retrieve it from the event generated when a snapshot is created.
Hugo</description>
		<content:encoded><![CDATA[<p>Hi Wolfi,<br />
Tanks.<br />
I don&#8217;t have the time to write a script for you right away. But search for <a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>PowerCLI</a> Snapshots Get-VIEvent and you might find something.<br />
I know the info you need is not included in the properties of a snapshot, so you have to retrieve it from the event generated when a snapshot is created.<br />
Hugo</p>
]]></content:encoded>
	</item>
</channel>
</rss>

