... in inoire ...
# Creeaza folderul users
New-Item -Path "D:\users" -ItemType Directory

# Seteaza permisiunile pe folderul D:\users
$acl = Get-Acl "D:\users"
$permission = "Users","Modify", "ContainerInherit,ObjectInherit", "None", "Allow"
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl.SetAccessRule($rule)

# Blocheaza ?tergerea folderului users
$denyDelete = "Users","Delete", "None", "None", "Deny"
$ruleDeny = New-Object System.Security.AccessControl.FileSystemAccessRule $denyDelete
$acl.AddAccessRule($ruleDeny)

# Aplica permisiunile
Set-Acl "D:\users" $acl