<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vi-toolkit.com/index.php?action=history&amp;feed=atom&amp;title=PowerCLI%3A_Set_VM_Snapshot_location</id>
	<title>PowerCLI: Set VM Snapshot location - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vi-toolkit.com/index.php?action=history&amp;feed=atom&amp;title=PowerCLI%3A_Set_VM_Snapshot_location"/>
	<link rel="alternate" type="text/html" href="https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_Set_VM_Snapshot_location&amp;action=history"/>
	<updated>2026-05-22T01:43:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_Set_VM_Snapshot_location&amp;diff=1088&amp;oldid=prev</id>
		<title>Wila: Added the script to set the Snapshot location by Hugo Peeters</title>
		<link rel="alternate" type="text/html" href="https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_Set_VM_Snapshot_location&amp;diff=1088&amp;oldid=prev"/>
		<updated>2009-08-28T18:07:43Z</updated>

		<summary type="html">&lt;p&gt;Added the script to set the Snapshot location by Hugo Peeters&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Set-VMSnapshotLocation ===&lt;br /&gt;
author: Hugo Peeters&lt;br /&gt;
==== Description ====&lt;br /&gt;
This powershell function allows you to setup an alternative location for storing the snapshots of your VM&amp;#039;s. &lt;br /&gt;
It will help you to protect your production LUN to run out of storage without having to oversize it for massive snapshots.&lt;br /&gt;
&lt;br /&gt;
==== Usage: ====&lt;br /&gt;
First, connect to a virtual server server (Connect-VIServer)&lt;br /&gt;
&lt;br /&gt;
Set snapshot location for one vm (folder must already exist on datastore):&lt;br /&gt;
 Set-VMSnapshotLocation -vm VM001 -Location &amp;quot;[BigAssDatastore] Snapshots&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For all vms at once (no folder specified will put all in the root of the datastore):&lt;br /&gt;
 Get-VM | ForEach-Object {Set-VMSnapshotLocation -vm $_ -Location &amp;quot;[BigAssDatastore]&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
Reset the location to the original location (with the vmx file):&lt;br /&gt;
 Set-VMSnapshotLocation -vm VM001 -Reset&lt;br /&gt;
&lt;br /&gt;
==== Location ====&lt;br /&gt;
http://www.peetersonline.nl/index.php/vmware/set-vmware-snapshot-location-with-powershell/&lt;br /&gt;
&lt;br /&gt;
[[Category: PowerCLI]] [[Category: VM Management]]&lt;/div&gt;</summary>
		<author><name>Wila</name></author>
	</entry>
</feed>