<?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 PoSH options to set NTFS permissions in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/14123#M719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;I'm cross-posting this note in both the &lt;STRONG&gt;NetApp PowerShell Toolkit&lt;/STRONG&gt; (MS Cloud and Svr Virt) and the &lt;STRONG&gt;Workflow Automation &lt;/STRONG&gt;communities as the audience I'm looking for probably spans both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;Many NetApp CIFS users create single Volume/CIFS-share combos (or a qtree within) and then control access to portions of it by setting&amp;nbsp; NTFS folder/file permissions on the qtree or folders with the share. I'm trying to advise customers the options available for doing this in an automated fashion. Options I'm aware of include:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DOT 7-mode &lt;STRONG&gt;fsecurity&lt;/STRONG&gt; command (automated via the DataONTAPPS Toolkit using Invoke-NaSsh and NaFile cmdlets&lt;/LI&gt;&lt;LI&gt;Get-ACL/Set-ACL cmdlets built into PowerShell (or at least they are on my system &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;Since I believe the &lt;STRONG&gt;fsecurity&lt;/STRONG&gt; command is 7-mode only, I'm leaning towards recommending Get-ACL &amp;amp; Set-ACL since I presume these would work in both a 7-mode and cDOT environment. The idea would use NetApp PS Toolkit cmdlets to create a volume and share, then the PoSH code would &lt;STRONG&gt;map&lt;/STRONG&gt; to the newly created share (&lt;STRONG&gt;\\filer\share&lt;/STRONG&gt;), then create &lt;STRONG&gt;folder&lt;/STRONG&gt;(s) within it and apply permissions to the &lt;STRONG&gt;folder&lt;/STRONG&gt; using Get/Set-ACL cmdlets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;However, reading this article ...&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #2889c5;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://technet.microsoft.com/en-us/magazine/2008.02.powershell.aspx" target="_blank"&gt;&lt;SPAN style="color: #2889c5;"&gt;http://technet.microsoft.com/en-us/magazine/2008.02.powershell.aspx&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;&lt;SPAN style="color: #575757;"&gt;... there is this statement: "... &lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana;"&gt;Additionally, the .NET Framework doesn't provide classes that represent the permissions in every type of Windows resource. &lt;/SPAN&gt;For example, while the .NET Framework provides classes that let you manipulate file security, it doesn't provide classes that let you work with the security on &lt;STRONG&gt;shared folders. ...&lt;/STRONG&gt;"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q1: I'm a little fuzzy on MS CIFS terminology, but is this saying how I envisioned using Get/Set-ACL above would NOT work ... because the mapped folder is being accessed via the CIFS sharing protocol?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q2: I also see mention of the Dsacls.exe, Cacls.exe, and Xcacls.exe CLI commands. Can anyone comment as to if this 'would' or wouldn't work against a folder/file being access in a CIFS share?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q3: I have working examples of WFA commands that use the &lt;STRONG&gt;fsecurity&lt;/STRONG&gt; command but they are 7-mode mode only. Another question is if/how would NetApp recommend doing similar functions in a cDOT environment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q4: Lastly ... Is anyone aware of PoSH or WFA cmds that automate NTFS folder/file permission setting using techniques other than that f&lt;STRONG&gt;security&lt;/STRONG&gt; command ... or is that the only way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Dave,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:32:31 GMT</pubDate>
    <dc:creator>korns</dc:creator>
    <dc:date>2025-06-05T05:32:31Z</dc:date>
    <item>
      <title>PoSH options to set NTFS permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/14123#M719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;I'm cross-posting this note in both the &lt;STRONG&gt;NetApp PowerShell Toolkit&lt;/STRONG&gt; (MS Cloud and Svr Virt) and the &lt;STRONG&gt;Workflow Automation &lt;/STRONG&gt;communities as the audience I'm looking for probably spans both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;Many NetApp CIFS users create single Volume/CIFS-share combos (or a qtree within) and then control access to portions of it by setting&amp;nbsp; NTFS folder/file permissions on the qtree or folders with the share. I'm trying to advise customers the options available for doing this in an automated fashion. Options I'm aware of include:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DOT 7-mode &lt;STRONG&gt;fsecurity&lt;/STRONG&gt; command (automated via the DataONTAPPS Toolkit using Invoke-NaSsh and NaFile cmdlets&lt;/LI&gt;&lt;LI&gt;Get-ACL/Set-ACL cmdlets built into PowerShell (or at least they are on my system &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;Since I believe the &lt;STRONG&gt;fsecurity&lt;/STRONG&gt; command is 7-mode only, I'm leaning towards recommending Get-ACL &amp;amp; Set-ACL since I presume these would work in both a 7-mode and cDOT environment. The idea would use NetApp PS Toolkit cmdlets to create a volume and share, then the PoSH code would &lt;STRONG&gt;map&lt;/STRONG&gt; to the newly created share (&lt;STRONG&gt;\\filer\share&lt;/STRONG&gt;), then create &lt;STRONG&gt;folder&lt;/STRONG&gt;(s) within it and apply permissions to the &lt;STRONG&gt;folder&lt;/STRONG&gt; using Get/Set-ACL cmdlets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial;"&gt;However, reading this article ...&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #2889c5;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://technet.microsoft.com/en-us/magazine/2008.02.powershell.aspx" target="_blank"&gt;&lt;SPAN style="color: #2889c5;"&gt;http://technet.microsoft.com/en-us/magazine/2008.02.powershell.aspx&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;&lt;SPAN style="color: #575757;"&gt;... there is this statement: "... &lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana;"&gt;Additionally, the .NET Framework doesn't provide classes that represent the permissions in every type of Windows resource. &lt;/SPAN&gt;For example, while the .NET Framework provides classes that let you manipulate file security, it doesn't provide classes that let you work with the security on &lt;STRONG&gt;shared folders. ...&lt;/STRONG&gt;"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q1: I'm a little fuzzy on MS CIFS terminology, but is this saying how I envisioned using Get/Set-ACL above would NOT work ... because the mapped folder is being accessed via the CIFS sharing protocol?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q2: I also see mention of the Dsacls.exe, Cacls.exe, and Xcacls.exe CLI commands. Can anyone comment as to if this 'would' or wouldn't work against a folder/file being access in a CIFS share?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q3: I have working examples of WFA commands that use the &lt;STRONG&gt;fsecurity&lt;/STRONG&gt; command but they are 7-mode mode only. Another question is if/how would NetApp recommend doing similar functions in a cDOT environment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Q4: Lastly ... Is anyone aware of PoSH or WFA cmds that automate NTFS folder/file permission setting using techniques other than that f&lt;STRONG&gt;security&lt;/STRONG&gt; command ... or is that the only way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: Arial; color: #323333;"&gt;Dave,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:32:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/14123#M719</guid>
      <dc:creator>korns</dc:creator>
      <dc:date>2025-06-05T05:32:31Z</dc:date>
    </item>
  </channel>
</rss>

