Alle Freigabe anzeigen:

 

Neue Freigabe erstellen:

 

Freigabeberechtigungen anzeigen:

 

Freigabeberechtigungen für eine bestehende Freigabe ändern:

 

Freigabeberechtigungen auf NTFS-Berechtigungen spiegeln:

 

Changing the ACL

Okay, so you want to change the ACL. Here’s some sample code for how to do that:

So, first we create a new folder. We then copy the ACL of that folder. We then create a new AccessRule that gives „username“ full control. We then add this AccessRule to the ACL, and finally we reapply the new, altered ACL to the folder.

If we wanted to we could also have used $Acl.RemoveAccessRule($Ar) or possibly $Acl.RemoveAccessRuleAll() as well.