Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to add the local controller "Power Users" group to every share on the same controller?
2016-11-16
10:51 AM
2,873 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
