Look into the "Get-ACL" and "Set-ACl" Cmdlets, for setting NTFS permissions, if you need those as well. You can use "Get-SharePermissions" to get the share permissions from the share and export them for review. A quick Google search can turn up a user-provided script for automating share permissions. Note, however, that you can't use WMI-based scripting, as the VNX doesn't support them.
But, as Rainer pointed out, sharedup is a quick-and-easy way to just copy share permissions without any scripting necessary.
Thanks Rainer, I hadn't seen "ShareDUP" before. I will give that a shot.
I was aware of the Win32 CIFS API, however for some reason all the commands/scripts I have made have not worked for me.
Thanks Karl,
I already knew of the get/set-ACL cmdlets. I have tried a vast number of different scripts that I wrote, as well as some that our friends at google turned up with no avail. If I find something, or end up coming up with something that works, I will post it here.
Rainer_EMC
6 Operator
•
8645 Posts
1017
1
Posted February 22nd, 2016 07:00
Sure – anything that just uses Win32 CIFS API’s should work as long as it doesnt require a server component like .NET
That’s what you use with your Windows clients explorer or through MMC
Try rmtshare – or sharedup if you just want to duplicate the share