To change the permission of a NTFS file:
#Add / Change NT Permissions ############################# get current permissions $acl = Get-Acl -Path <FileName>#SID from NT AUTHORITY\SYSTEM $SidString = ‚S-1-5-18‘ # add a new permission # set new permissions |