<?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: Modify CIFS share permissions in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23159#M1081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that's right, but I only want to modify the user shares, fortunately they all share the same first bit of the folder path which is why I added &lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;Get-NaCifsShare | Where-Object {$_.MountPoint -like "/vol/user/folders"} &lt;/EM&gt; to my script&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2014 15:26:14 GMT</pubDate>
    <dc:creator>CARBONBASE</dc:creator>
    <dc:date>2014-08-08T15:26:14Z</dc:date>
    <item>
      <title>Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23111#M1071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to modify permissions on a number of NetApp CIFS shares (over 100). These are user shares (share names do not match the user names) and each share has a different user account with "Change" share permission, this permission now needs to be "Full Control".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need to be able to add a new group to these shares and give that group "Full Control" and finally I need to remove a group "Domain Admins" that has already been given permissions to the shares.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've only worked out how to view the share permissions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-NaCifsShareAcl -Share usertest01 | select ShareName -ExpandProperty UserAclInfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have at the moment is this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;share name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc1&lt;/P&gt;&lt;P&gt;permission 1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\user 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; change&lt;/P&gt;&lt;P&gt;permission 2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\domain admin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; full control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;share name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc2&lt;/P&gt;&lt;P&gt;permission 1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\user 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; change&lt;/P&gt;&lt;P&gt;permission 2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\domain admins&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; full control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to end up with is this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;share name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc1&lt;/P&gt;&lt;P&gt;permission 1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\user 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; full control&lt;/P&gt;&lt;P&gt;permission 2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\new group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; full control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;share name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc2&lt;/P&gt;&lt;P&gt;permission 1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\user 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; full control&lt;/P&gt;&lt;P&gt;permission 2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydomain\new group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; full control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the easiest way to get what I want would be to enumerate the share permissions and for any user account that is not Domain Admins, change its share permission to "full control" then remove Domain Admins and add my new group giving it "full control" as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:31:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23111#M1071</guid>
      <dc:creator>CARBONBASE</dc:creator>
      <dc:date>2025-06-05T05:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23114#M1072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how i would skin this cat...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have a few requirements but I will get you started&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-nacifsshareacl | select sharename -expandproperty useraclinfo&amp;nbsp; | % {&lt;/P&gt;&lt;P&gt;if ($_.accessrights -eq "change") {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set-nacifsshareacl $_.sharename $_.username -accessrights "Full Control"}&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to make your modifications there.. I can help you out more if you give us a little more detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 12:50:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23114#M1072</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-08-07T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23122#M1073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you've cracked it thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing I couldn't get my head around was that each of the user shares had different user account and I was focusing on that, where as the permissions were all the same and I just needed to change the permission on the account which had "Change".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added to your code a connection string to connected to the right filer and also a test for the share path, as well as commands to add and remove domain groups, so that my script only changes permissions on my user shares.&amp;nbsp; So my code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect-NaController -Name toaster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-NaCifsShare | Where-Object {$_.MountPoint -like "/vol/user/folders"} | Set-NaCifsShareAcl -User "mydomain\new group" -AccessRights "Full Control" | Remove-NaCifsShareAcl -User "Domain Admins" | get-nacifsshareacl | select sharename -expandproperty useraclinfo&amp;nbsp; | % {&lt;/P&gt;&lt;P&gt;if ($_.accessrights -eq "change") {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set-nacifsshareacl $_.sharename $_.username -accessrights "Full Control"} &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 15:55:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23122#M1073</guid>
      <dc:creator>CARBONBASE</dc:creator>
      <dc:date>2014-08-07T15:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23127#M1074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow.. The above code looks messy but if it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are querying and then setting and then looping it through foreach.. confusing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 15:58:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23127#M1074</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-08-07T15:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23131#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very new to Powershell, so I may not be doing things in the most efficient way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas for tidying up the script gratefully received. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 10:35:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23131#M1075</guid>
      <dc:creator>CARBONBASE</dc:creator>
      <dc:date>2014-08-08T10:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23136#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, let's start with this.. are you trying to do lots of shares or just one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 12:31:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23136#M1076</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-08-08T12:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23140#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got around 500 shares to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 13:52:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23140#M1077</guid>
      <dc:creator>CARBONBASE</dc:creator>
      <dc:date>2014-08-08T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23145#M1078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, let me help you out... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are they all on the same controller?&amp;nbsp; If not, do they experience all the same characterstics that we can query against..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The beauty of powershell is that its flexible and powerful, so we can script just about anything..&amp;nbsp;&amp;nbsp; You want powershell to do the logic for you to make your life easy.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's start there and then I can ehp build your script &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 14:50:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23145#M1078</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-08-08T14:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23150#M1079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the shares are on the same controller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:14:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23150#M1079</guid>
      <dc:creator>CARBONBASE</dc:creator>
      <dc:date>2014-08-08T15:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23154#M1080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes life easy... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all the shares are changing it makes it even easier... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:17:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23154#M1080</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-08-08T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modify CIFS share permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23159#M1081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that's right, but I only want to modify the user shares, fortunately they all share the same first bit of the folder path which is why I added &lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;Get-NaCifsShare | Where-Object {$_.MountPoint -like "/vol/user/folders"} &lt;/EM&gt; to my script&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:26:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Modify-CIFS-share-permissions/m-p/23159#M1081</guid>
      <dc:creator>CARBONBASE</dc:creator>
      <dc:date>2014-08-08T15:26:14Z</dc:date>
    </item>
  </channel>
</rss>

