<?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 Re: PoSH options to set NTFS permissions in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78070#M16206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 - as said, get-acl and set-acl work just fine&lt;/P&gt;&lt;P&gt;2 - the other Windows CLI tools work as well&lt;/P&gt;&lt;P&gt;3 - i haven't used WFA and i don't know what the recommendations are, but fsecurity is available on cDOT in the nodeshell&lt;/P&gt;&lt;P&gt;4 - i would probably recommend get/set-acl (it is what i use for our provisioning scripts), but for cDOT there is Add/Get/Set/Remove-NcFileDirectorySecurityNtfs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2014 15:50:10 GMT</pubDate>
    <dc:creator>markweber</dc:creator>
    <dc:date>2014-07-14T15:50:10Z</dc:date>
    <item>
      <title>PoSH options to set NTFS permissions</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78061#M16201</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 DataONTAP PS 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 &lt;STRONG&gt;fsecurity&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/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78061#M16201</guid>
      <dc:creator>korns</dc:creator>
      <dc:date>2025-06-05T05:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: PoSH options to set NTFS permissions</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78066#M16204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good questions and at the moment I can only answer the below. I would need on work on the others the answer correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ &lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&gt;=======&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&gt;Both Get-Acl and Set-Acl can work with network mapped drives or network folder available by cifs sharing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&gt;Get-Acl -Path \\10.226.179.161\WFA-Backups&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&gt;Get-Acl -Path Y:\WFA-Backups&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&gt;Also set-Acl would work be depends on what permission you have on the folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323333; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 13:09:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78066#M16204</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-07-12T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: PoSH options to set NTFS permissions</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78070#M16206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 - as said, get-acl and set-acl work just fine&lt;/P&gt;&lt;P&gt;2 - the other Windows CLI tools work as well&lt;/P&gt;&lt;P&gt;3 - i haven't used WFA and i don't know what the recommendations are, but fsecurity is available on cDOT in the nodeshell&lt;/P&gt;&lt;P&gt;4 - i would probably recommend get/set-acl (it is what i use for our provisioning scripts), but for cDOT there is Add/Get/Set/Remove-NcFileDirectorySecurityNtfs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 15:50:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78070#M16206</guid>
      <dc:creator>markweber</dc:creator>
      <dc:date>2014-07-14T15:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: PoSH options to set NTFS permissions</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78075#M16209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark ... good news all around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 22:45:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/78075#M16209</guid>
      <dc:creator>korns</dc:creator>
      <dc:date>2014-07-15T22:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: PoSH options to set NTFS permissions</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/98685#M17395</link>
      <description>&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created this WFA command to add permission to given UNC path, needed permission and domain user/group and another one to remove NTFS permission (usually Everyone-FullControl is auto and we want to remove it)&lt;/P&gt;&lt;P&gt;It's pretty straight forward.&lt;/P&gt;&lt;P&gt;I'll tweak it more for my customer that asked for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Solal.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:22:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/PoSH-options-to-set-NTFS-permissions/m-p/98685#M17395</guid>
      <dc:creator>solal</dc:creator>
      <dc:date>2014-12-23T14:22:45Z</dc:date>
    </item>
  </channel>
</rss>

