<?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 Query CIFS Shares &amp;amp; NTFS Permissions for publishing in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Query-CIFS-Shares-amp-NTFS-Permissions-for-publishing/m-p/139485#M5714</link>
    <description>&lt;P&gt;I am trying to leverage the PowerShell Toolkit to enable me to query all visible shares on the NetApp filer and their associated NTFS permissions to display on a web page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the PowerShell tool the correct thing to do this, or is there a better / native Microsoft tool which can pull the same data Share+NTFS permissions directly from the NetApp so that they can be published as a report to a website?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:49:56 GMT</pubDate>
    <dc:creator>steven_doan</dc:creator>
    <dc:date>2025-06-04T13:49:56Z</dc:date>
    <item>
      <title>Query CIFS Shares &amp; NTFS Permissions for publishing</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Query-CIFS-Shares-amp-NTFS-Permissions-for-publishing/m-p/139485#M5714</link>
      <description>&lt;P&gt;I am trying to leverage the PowerShell Toolkit to enable me to query all visible shares on the NetApp filer and their associated NTFS permissions to display on a web page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the PowerShell tool the correct thing to do this, or is there a better / native Microsoft tool which can pull the same data Share+NTFS permissions directly from the NetApp so that they can be published as a report to a website?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:49:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Query-CIFS-Shares-amp-NTFS-Permissions-for-publishing/m-p/139485#M5714</guid>
      <dc:creator>steven_doan</dc:creator>
      <dc:date>2025-06-04T13:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query CIFS Shares &amp; NTFS Permissions for publishing</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Query-CIFS-Shares-amp-NTFS-Permissions-for-publishing/m-p/139488#M5715</link>
      <description>&lt;P&gt;You can try to muck around with fsecurity,&amp;nbsp; but we do this with a combination of custom scripts that grab the shares, put the share permissions and then grab the AD groups associated at a folder level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a pretty standard naming convention, so if it's a read group, it's _R and if Change it's _C.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend you look at the open source ntfssecurity module in the technet site for anything to do with NTFS perms.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:12:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Query-CIFS-Shares-amp-NTFS-Permissions-for-publishing/m-p/139488#M5715</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2018-04-10T16:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query CIFS Shares &amp; NTFS Permissions for publishing</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Query-CIFS-Shares-amp-NTFS-Permissions-for-publishing/m-p/139497#M5716</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/5571"&gt;@steven_doan&lt;/a&gt;, we actually do this in a nightly script on a VM that replicates to DR. We export the details to CSV files which we would use in a true DR scenario to restore the shares. Here's an edited version of the script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# Get all share data for all SVMs&lt;BR /&gt;Get-NcCifsShare -Controller $CLUSTER -VserverContext&amp;nbsp;&amp;lt;vserver1&amp;gt; | select ShareName,Path,Comment | Export-Csv &lt;SPAN&gt;&amp;lt;vserver1&amp;gt;&lt;/SPAN&gt;_shares.csv&lt;BR /&gt;Get-NcCifsShare -Controller $CLUSTER -VserverContext &lt;SPAN&gt;&amp;lt;vserver2&amp;gt;&lt;/SPAN&gt; | select ShareName,Path,Comment | Export-Csv &lt;SPAN&gt;&amp;lt;vserver2&amp;gt;_&lt;/SPAN&gt;shares.csv&lt;BR /&gt;Get-NcCifsShare -Controller $CLUSTER -VserverContext &lt;SPAN&gt;&amp;lt;vserver3&amp;gt;&lt;/SPAN&gt; | select ShareName,Path,Comment | Export-Csv &lt;SPAN&gt;&amp;lt;vserver3&amp;gt;&lt;/SPAN&gt;_shares.csv&lt;BR /&gt;Get-NcCifsShare -Controller $CLUSTER -VserverContext &lt;SPAN&gt;&amp;lt;vserver4&amp;gt;&lt;/SPAN&gt; | select ShareName,Path,Comment | Export-Csv &lt;SPAN&gt;&amp;lt;vserver4&amp;gt;&lt;/SPAN&gt;_shares.csv&lt;BR /&gt;Get-NcCifsShare -Controller $CLUSTER -VserverContext &lt;SPAN&gt;&amp;lt;vserver5&amp;gt;&lt;/SPAN&gt; | select ShareName,Path,Comment | Export-Csv &lt;SPAN&gt;&amp;lt;vserver5&amp;gt;&lt;/SPAN&gt;_shares.csv&lt;/P&gt;
&lt;P&gt;# Get all share ACLs for all SVMs&lt;BR /&gt;Get-NcCifsShareAcl -Controller $CLUSTER -VserverContext cithqnadbbak01p | select Share,UserOrGroup,Permission | Export-Csv &lt;SPAN&gt;&amp;lt;vserver1&amp;gt;&lt;/SPAN&gt;_acls.csv&lt;BR /&gt;Get-NcCifsShareAcl -Controller $CLUSTER -VserverContext cithqnadbbak02p | select Share,UserOrGroup,Permission | Export-Csv &lt;SPAN&gt;&amp;lt;vserver2&amp;gt;&lt;/SPAN&gt;_acls.csv&lt;BR /&gt;Get-NcCifsShareAcl -Controller $CLUSTER -VserverContext isshqvfexapp01p | select Share,UserOrGroup,Permission | Export-Csv &lt;SPAN&gt;&amp;lt;vserver3&amp;gt;&lt;/SPAN&gt;_acls.csv&lt;BR /&gt;Get-NcCifsShareAcl -Controller $CLUSTER -VserverContext isshqvfinapp01p | select Share,UserOrGroup,Permission | Export-Csv &lt;SPAN&gt;&amp;lt;vserver4&amp;gt;&lt;/SPAN&gt;_acls.csv&lt;BR /&gt;Get-NcCifsShareAcl -Controller $CLUSTER -VserverContext isshqvfinusr01p | select Share,UserOrGroup,Permission | Export-Csv &lt;SPAN&gt;&amp;lt;vserver5&amp;gt;&lt;/SPAN&gt;_acls.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the ReadMe file we put next to the PowerShell script results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;lt;vserver&amp;gt;_shares&lt;/P&gt;
&lt;P&gt;Enter the following formula in column M, row 3 of the shares spreadsheet, replacing &amp;lt;vserver&amp;gt; with the SVM (use the DR SVM name if restoring in DR). Copy the formula down.&lt;/P&gt;
&lt;P&gt;="vserver cifs share create -vserver &amp;lt;vserver&amp;gt; -share-name "&amp;amp;A3&amp;amp;" -path "&amp;amp;B3&amp;amp;" -comment """&amp;amp;C3&amp;amp;""""&lt;/P&gt;
&lt;P&gt;NOTES&lt;BR /&gt;If comments are blank, remove the -comment &amp;lt;comment&amp;gt; part of the command line.&lt;BR /&gt;Remove lines for the $C, $ADMIN, and $IPC shares as they will automatically be re-created.&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;lt;vserver&amp;gt;_acls&lt;/P&gt;
&lt;P&gt;Enter the following formula in column M, row 3 of the acls spreadsheet, replacing &amp;lt;vserver&amp;gt; with the SVM name. Copy the formula down.&lt;/P&gt;
&lt;P&gt;="vserver cifs share access-control create -vserver &amp;lt;vserver&amp;gt; -share "&amp;amp;A3&amp;amp;" -user-or-group """&amp;amp;B3&amp;amp;""" -permission "&amp;amp;C3&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 19:13:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Query-CIFS-Shares-amp-NTFS-Permissions-for-publishing/m-p/139497#M5716</guid>
      <dc:creator>TMADOCTHOMAS</dc:creator>
      <dc:date>2018-04-10T19:13:26Z</dc:date>
    </item>
  </channel>
</rss>

