<?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 Need help scripting in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Need-help-scripting/m-p/41315#M1914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some help coming up with the script to check these snapdive snapshots for ones older than 30 days and deleteing them.&amp;nbsp; I can't change naming conventions.&amp;nbsp; The naming convention is adding get-date -format yyyyMMddHHmmss to "windows-". Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/17587_11-9-2012+9-44-01+AM.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:15:35 GMT</pubDate>
    <dc:creator>CASTROJSEC</dc:creator>
    <dc:date>2025-06-05T06:15:35Z</dc:date>
    <item>
      <title>Need help scripting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Need-help-scripting/m-p/41315#M1914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some help coming up with the script to check these snapdive snapshots for ones older than 30 days and deleteing them.&amp;nbsp; I can't change naming conventions.&amp;nbsp; The naming convention is adding get-date -format yyyyMMddHHmmss to "windows-". Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/17587_11-9-2012+9-44-01+AM.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:15:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Need-help-scripting/m-p/41315#M1914</guid>
      <dc:creator>CASTROJSEC</dc:creator>
      <dc:date>2025-06-05T06:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help scripting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Need-help-scripting/m-p/41320#M1916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you figured this out already but for anyone else... the lines below will get the current date, list volumes, filter out offline volumes and ignore read-only volumes, get each of their snapshots older than 30days where there is no dependency(clone, etc) on the volume and then finally remove the snapshots. Hope that helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$Now = get-date&lt;/P&gt;&lt;P&gt;get-navol | where-object {$_.State -eq "online" -and $_.raidstatus -notlike "*read-only"} | get-nasnapshot | where-object {$_.AccessTimeDT -le $Now.AddDays(-30) -and $_.Dependency -eq ""} | remove-nasnapshot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 20:20:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Need-help-scripting/m-p/41320#M1916</guid>
      <dc:creator>NHANAS_RS</dc:creator>
      <dc:date>2013-02-15T20:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help scripting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Need-help-scripting/m-p/41330#M1917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nick.&amp;nbsp; I did figure it out.&amp;nbsp; I'll post it soon.&amp;nbsp; I'm going to try what you have provided.&amp;nbsp; Looks good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 14:33:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Need-help-scripting/m-p/41330#M1917</guid>
      <dc:creator>CASTROJSEC</dc:creator>
      <dc:date>2013-02-28T14:33:32Z</dc:date>
    </item>
  </channel>
</rss>

