<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Schedule snapshot creation and removal? in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2522997#M85826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a need to take a daily snapshot of a VM.  I need to keep the snapshots for a set number of days.  Usually 3 days is long enough, but sometimes the request is to keep for longer.  I know I can take a snapshot using a PowerCLI script, and schedule it daily from a scheduled task.  But can I automate the deletion of any snapshot over 3 days old?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a PowerCLI novice, and don't currently have the skills to pull this off.  So any help here would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Geob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Apr 2010 11:43:41 GMT</pubDate>
    <dc:creator>geob</dc:creator>
    <dc:date>2010-04-05T11:43:41Z</dc:date>
    <item>
      <title>Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2522997#M85826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a need to take a daily snapshot of a VM.  I need to keep the snapshots for a set number of days.  Usually 3 days is long enough, but sometimes the request is to keep for longer.  I know I can take a snapshot using a PowerCLI script, and schedule it daily from a scheduled task.  But can I automate the deletion of any snapshot over 3 days old?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a PowerCLI novice, and don't currently have the skills to pull this off.  So any help here would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Geob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 11:43:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2522997#M85826</guid>
      <dc:creator>geob</dc:creator>
      <dc:date>2010-04-05T11:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2522998#M85827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to delete all the snapshots that are older then 3 days you can do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;
Get-VM  | `
  Get-Snapshot |  `
  Where-Object { $_.Created -lt (Get-Date).AddDays(-3) } | `
  Remove-Snapshot
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you save this script as C:\Remove-SnapshotsOlderThen3Days.ps1 you can schedule it if you run the next Windows command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;
%SystemRoot%\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -command "&amp;amp;{C:\Remove-SnapshotsOlderThen3Days.ps1}"
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 12:13:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2522998#M85827</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2010-04-05T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2522999#M85828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow that looks great.  Is there a way to specify the VM instead of looking at all VM snapshots?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 12:20:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2522999#M85828</guid>
      <dc:creator>geob</dc:creator>
      <dc:date>2010-04-05T12:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523000#M85829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change "Get-VM" into "Get-VM -Name YourVMName" you get only one VM instead of all. Before you can use these commands you have to connect to a vCenter or ESX server with the Connect-VIserver cmdlet. To make the code complete for one VM it will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="code"&gt;
Connect-VIServer -Server YourvCenterServerName
Get-VM  -Name YourVMName | `
  Get-Snapshot |  `
  Where-Object { $_.Created -lt (Get-Date).AddDays(-3) } | `
  Remove-Snapshot
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 13:32:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523000#M85829</guid>
      <dc:creator>RvdNieuwendijk</dc:creator>
      <dc:date>2010-04-05T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523001#M85830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This script is great, I am just having no luck getting it to run as a scheduled task on Windows 2008 R2.&amp;nbsp; I tried to run the script from a command prompt, then within powershell, and no luck as I keep getting an error about the 'operand' and it appears to be caused by the -command portion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saved the snapshot deletion script to a .ps1 file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I setup a scheduled task and entered in the command that was in one of the replies to this thread, then I tried to edit it, searched quite a while and no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what's missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the command I was using and I am thinking that it's a syntax error with " marks or something else, but I am not finding it..I tried putting the spaces in for the "C:\Program Files (x86) and that didn't work, and I tried taking out the -command portion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%systemroot%\system32\windowspowershell\powershell.exe\v1.0\powershell.exe PSConsoleFile "C:\Program Files(x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -command "&amp;amp;{C:\Program Files(x86)\VMware\Infrastructure\vSphere PowerCLI\ps\DelSnaps.ps1}"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 03:23:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523001#M85830</guid>
      <dc:creator>VirtuallyNotHer</dc:creator>
      <dc:date>2011-02-02T03:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523002#M85831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Hoping that this post isn't dead)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I ran this script from the run line (as mention in the earlier post) the Powershell window came up and I was prompted to confirm the deletion of the snapshots by entering "Y" or "A" (for yes to all). After entering "A" the script completed and my snapshots were gone...&lt;/P&gt;&lt;P&gt;However, When I attempted to run as a scheduled task, The task hung and did not complete. I could see the Powershell app running in the Task Manager processes and the scheduled task stated "running" but since no Powershell window popped up. I'm guessing it still needed a confirmation to delete snapshots and therefore wouldn't complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the syntax&amp;nbsp; for in the script to have the confirmation built in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for any help that can be provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 22:37:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523002#M85831</guid>
      <dc:creator>dactech</dc:creator>
      <dc:date>2012-11-20T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523003#M85832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add the -Confirm:$false parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 07:13:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523003#M85832</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2012-11-21T07:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523004#M85833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Awesome!!! &lt;/STRONG&gt;That parameter did the trick for the auto confirmation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks so much for your Help LucD!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:40:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523004#M85833</guid>
      <dc:creator>dactech</dc:creator>
      <dc:date>2012-11-21T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523005#M85834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you also suggest how to set and get mail confirmation after delete the snapshot automatically..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2016 14:50:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523005#M85834</guid>
      <dc:creator>amitk97</dc:creator>
      <dc:date>2016-03-19T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523006#M85835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can send mail with the &lt;A href="https://technet.microsoft.com/en-us/library/hh849925.aspx"&gt;Send-MailMessage &lt;/A&gt;cmdlet.&lt;/P&gt;&lt;P&gt;If that is what you are asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 08:40:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523006#M85835</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2016-03-20T08:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523007#M85836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LucD....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 15:32:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523007#M85836</guid>
      <dc:creator>amitk97</dc:creator>
      <dc:date>2016-03-20T15:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523008#M85837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LucD. How do I create schedule snapshot for specific Servers. Eg., Client is requesting to Create Snapshot for 10 Servers at 30th June 2017 at 9:00 PM EST. How do i schedule snapshot for those 10 servers ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;N. Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 19:47:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523008#M85837</guid>
      <dc:creator>nsathish_52</dc:creator>
      <dc:date>2017-06-27T19:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523009#M85838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a Scheduled Task for each snapshot.&lt;/P&gt;&lt;P&gt;See for example &lt;STRONG style="font-size: 16px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;A _jive_internal="true" class="font-color-meta-light" href="https://communities.vmware.com/message/2613701#2613701" style="font-weight: inherit; font-style: inherit; font-size: inherit; font-family: inherit; color: #a9a9a9 !important;" title="Link to reply #1"&gt;1.&lt;/A&gt; &lt;A _jive_internal="true" class="font-color-meta-light" href="https://communities.vmware.com/message/2613701#2613701" name="&amp;amp;amp;lpos=apps_scodevmw : 92" style="font-weight: inherit; font-style: inherit; font-size: inherit; font-family: inherit; color: #a9a9a9 !important;"&gt;Re: Schedule Snapshot with PowerCli&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 20:06:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523009#M85838</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-06-27T20:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523010#M85839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt; Can you please add the mailing part to the script as well and write out the full script again will be very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 05:40:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523010#M85839</guid>
      <dc:creator>Susovan_Ghara</dc:creator>
      <dc:date>2020-08-13T05:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523011#M85840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://communities.vmware.com/message/2583320"&gt;Re: Schedule snapshot creation and removal?&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 05:58:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523011#M85840</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-08-13T05:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523012#M85841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LucD, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if I have to put an exception on a VM, how to include that.?? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 06:18:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523012#M85841</guid>
      <dc:creator>Susovan_Ghara</dc:creator>
      <dc:date>2020-08-13T06:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523013#M85842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean 'exclude' one or more VMs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 07:30:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523013#M85842</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-08-13T07:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523014#M85843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, Suppose the script is for deletion of snapshots automated which is over 3 days but suppose we got an adhoc request to keep on VM snapshot for 10 days. At that case how should we exclude that vm from snapshot deletion. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 07:53:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523014#M85843</guid>
      <dc:creator>Susovan_Ghara</dc:creator>
      <dc:date>2020-08-13T07:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523015#M85844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use another Where-clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;Get-VM&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="color: #777777;"&gt;|&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;Where-Object&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;{$&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;_.Name&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;-ne&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;ExcludeThisVM&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;Get-Snapshot&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;Where-Object&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;_.Created&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;-lt&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;Get-Date&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;.AddDays&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;-3&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #777777;"&gt;|&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;Remove-Snapshot&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 08:16:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523015#M85844</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-08-13T08:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule snapshot creation and removal?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523016#M85845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LucD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created the script. I have mnay types of exceptions required so I did lots of if and else. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script is working superb. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 15:14:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Schedule-snapshot-creation-and-removal/m-p/2523016#M85845</guid>
      <dc:creator>Susovan_Ghara</dc:creator>
      <dc:date>2020-08-13T15:14:54Z</dc:date>
    </item>
  </channel>
</rss>

