NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

How to add the local controller "Power Users" group to every share on the same controller?

GeorgeZuggNC
3,603 Views

How do I go about using powershell to add the local controller "Power Users" group to every share on the same controller?  I can do a single share like this {Set-NaCifsShareAcl -Share sharename -User "Power Users" -AccessRights Read} but I want to touch every share on this single controller.

2 REPLIES 2

GeorgeZuggNC
3,603 Views

Is there a way to add the same user to every share on the same controller using powershell if I am the administrator or logged in as root?

markweber
3,555 Views

get-nacifsshare | %{Set-NaCifsShareAcl -Share $_.sharename -User "Power Users" -AccessRights Read}

 

i don't have any 7-mode left to test that on, so ymmv

Public