Subscribe

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

[ Edited ]

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.

Re: Ask the Experts: NetApp PowerShell Questions

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

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