Clone NTFS Permissions

by Mar 24, 2009

NTFS access permissions can be complex and tricky. To quickly assign NTFS permissions to a new folder, you can simply clone permissions from another folder that you know has the correct permissions applied.

md $homesample

# manually assign correct permissions to folder "sample"
$sddl = (Get-Acl $homesample).Sddl
md $homenewfolder
$sd = Get-Acl $homenewfolder
$sd.SetSecurityDescriptorSddlForm($sddl)
$sd.Sddl
Set-Acl $homenewfolder $sd

Unfortunately, setting ACLs this way always requires administrator privileges.