Hello everyone, I’m fairly new to ps and need some help with this one.
We have Browse groups, local and global.
Global goes into local and browse. Browse is on the root folder, while local is on the subfolder.
Browse should be this folder only.
My question is:
- I cant add the Browse Group with the advanced permission error: powershell cannot find an overload for filesystemaccessrule and the argument count: "8"
Should look like this in the end:
#Add group to folder (Browse Gruppe)
$aclB = Get-Acl \srv\Dat$\Da
$AccessRuleB = New-Object System.Security.AccessControl.FileSystemAccessRule("$BGruppeName", "ExecuteFile", "ReadData", "ReadAttributes", "ReadExtendedAttributes", "None", "Read", "Allow")
$aclB | Set-Acl \srv\Dat$\Da