Clear-Host $acl = get-acl "D:\Test" #Paramètres dans l'ordre : Le compte, FileSystemRights (Read, ReadAndExecute, Write, Modify, ListDirectory, FullControl etc), InheritanceFlags (ContainerInherit None ou ObjectInherit), PropagationFlags (InheritOnly, None ou NoPropagateInherit) , AccessControlType (Allow, Deny) $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("robert","ReadAndExecute", "ContainerInherit, ObjectInherit", "None", "Allow") $Acl.addAccessRule($rule) #ajout de la régle $acl |Set-Acl #Appliquer les droits