Forum Discussion
Create Share Folder and Set ACP Permission
Hi Aamironit
mkdir E:\testing\
New-SmbShare -Name "Shared Folder" -Path "E:\Testing\" -FullAccess "Contoso\Jeff","Contoso\Joe"
[-FullAccess <String[]>]
[-ChangeAccess <String[]>]
[-ReadAccess <String[]>]
[-NoAccess <String[]>]
Check out the official documentation.
https://docs.microsoft.com/en-us/powershell/module/smbshare/new-smbshare?view=windowsserver2022-ps
I would love, if you don't "order" a script, but you share some code that you already made 🙂
Best regards,
Schnittlauch
"First, No system is safe. Second, Aim for the impossible. Third, no Backup, no Mercy" - Schnittlauch
My answer helped you? Don't forget to leave a like. Also mark the answer as solved when your problem is solved. 🙂
- AamironitJul 19, 2022Copper Contributor
Thanks a lot, Actually I already seen this code to give full permission for one object user/group, but my point is I did not get how to set for more than user/group, if it is needed to be pipeline or how it is connected to be run all at one time.
Thanks