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 $home\sample
$sddl = (Get-Acl $home\sample).Sddl
md $home\newfolder
$sd = Get-Acl $home\newfolder
$sd.SetSecurityDescriptorSddlForm($sddl)
$sd.Sddl
Set-Acl $home\newfolder $sd
Unfortunately, setting ACLs this way always requires administrator privileges.
Posted
Mar 24 2009, 08:00 AM
by
ps1