Microsoft Virtualization Discussions

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

GeorgeZuggNC
views-count 1436 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

Re: Ask the Experts: NetApp PowerShell Questions

GeorgeZuggNC
views-count 1437 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?

Re: Ask the Experts: NetApp PowerShell Questions

markweber
views-count 1437 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

G2 Review Banner
All Community Forums
Public