<?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 Copy an export policy via PowerShell in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122526#M5010</link>
    <description>&lt;P&gt;I have a customer that has asked for a script to make a backup copy of their export policies every night (and keep 30 days).&lt;/P&gt;&lt;P&gt;I told them this would be easy - until I had a problem finding a cmdlet to make a copy of an export policy. &amp;nbsp;We can copy an export policy through the command line. &amp;nbsp;But I can't find the equivalent PowerShell commands to do this. &amp;nbsp;Am I missing something with the *-NCExportPolicy cmdlets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Just the same, we can copy quota policies via the command line and through the copy-ncquotapolicy cmdlet. &amp;nbsp;Is there an equivalent for export policies?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 19:25:26 GMT</pubDate>
    <dc:creator>rcharlie</dc:creator>
    <dc:date>2025-06-04T19:25:26Z</dc:date>
    <item>
      <title>Copy an export policy via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122526#M5010</link>
      <description>&lt;P&gt;I have a customer that has asked for a script to make a backup copy of their export policies every night (and keep 30 days).&lt;/P&gt;&lt;P&gt;I told them this would be easy - until I had a problem finding a cmdlet to make a copy of an export policy. &amp;nbsp;We can copy an export policy through the command line. &amp;nbsp;But I can't find the equivalent PowerShell commands to do this. &amp;nbsp;Am I missing something with the *-NCExportPolicy cmdlets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Just the same, we can copy quota policies via the command line and through the copy-ncquotapolicy cmdlet. &amp;nbsp;Is there an equivalent for export policies?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:25:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122526#M5010</guid>
      <dc:creator>rcharlie</dc:creator>
      <dc:date>2025-06-04T19:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy an export policy via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122529#M5011</link>
      <description>&lt;P&gt;^^ I learned to not say "yes i can do that easily" with cDOT cmdlets b/c the 7-mode cmdlets i found were easily to adapt too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you make headway, let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 15:30:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122529#M5011</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-08-22T15:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy an export policy via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122530#M5012</link>
      <description>&lt;P&gt;There are some scripts for export/backup of export and share policies &lt;A href="https://github.com/DatacenterDudes/cDOT-CIFS-share-backup-restore" target="_self"&gt;here&lt;/A&gt;. &amp;nbsp;At the core, you need to use the Get-NcExportPolicy and Get-NcExportPolicyRule cmdlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 15:47:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122530#M5012</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-08-22T15:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Copy an export policy via PowerShell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122534#M5013</link>
      <description>&lt;P&gt;Thanks for the quick reply Andrew.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 16:27:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Copy-an-export-policy-via-PowerShell/m-p/122534#M5013</guid>
      <dc:creator>rcharlie</dc:creator>
      <dc:date>2016-08-22T16:27:24Z</dc:date>
    </item>
  </channel>
</rss>

