import-csv "C:\useraccounts.csv" | ForEach-Object { $directory = "D:\Personal\" + $_.SAM $domainAccount = "COMP\" + $_.SAM $rule=new-object System.Security.AccessControl.FileSystemAccessRule( $domainAccount ,"FullControl","Allow") $acl=get-acl $directory #Add this access rule to the ACL $acl.SetAccessRule($rule) #Write the changes to the object set-acl $directory $acl } This however, wont set permissions recursively, you'll need something like this from technet. Notice the "for each file" https://technet.microsoft.com/en-us/magazine/2008.02.powershell.aspx #ChangeACL.ps1 $Right="FullControl" #The possible values for Rights are # ListDirectory, ReadData, WriteData # CreateFiles, CreateDirectories, AppendData # ReadExtendedAttributes, WriteExtendedAttributes, Traverse # ExecuteFile, DeleteSubdirectoriesAndFiles, ReadAttributes # WriteAttributes, Write, Delete # ReadPermissions, R...