<?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>ChristianCGI Tracker</title>
    <link>https://communities.vmware.com/wbsdv95928/tracker</link>
    <description>ChristianCGI Tracker</description>
    <pubDate>Thu, 23 Nov 2023 15:38:23 GMT</pubDate>
    <dc:date>2023-11-23T15:38:23Z</dc:date>
    <item>
      <title>Re: Remove snapshots using script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Remove-snapshots-using-script/m-p/2967512#M111904</link>
      <description>&lt;P&gt;&lt;EM&gt;Hello,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For me I create a 3 lines script to remove all snapshot older then 3 days, but it looks like the log file not working, I get nothing in the file.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do you have any suggestion ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Connect-VIServer -server blablabla&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;$snapshot = Get-VM | Get-Snapshot | Where {$_.Created -lt (Get-Date).AddDays(-3)} | Out-File "C:\Temp\deletesnap\logs.txt" -Append&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$snapshot | Remove-Snapshot -RemoveChildren -RunAsync -Confirm:$false | Out-File "C:\Temp\deletesnap\logs.txt" -Append&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 May 2023 12:23:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Remove-snapshots-using-script/m-p/2967512#M111904</guid>
      <dc:creator>ChristianCGI</dc:creator>
      <dc:date>2023-05-09T12:23:19Z</dc:date>
    </item>
  </channel>
</rss>

