A PowerShell script to copy access entries from one user to another user might look something like this:


$oldUser = [System.Security.Principal.NTAccount] 'DOMAIN\User01'
$newUser = [System.Security.Principal.NTAccount] 'DOMAIN\User02'

$acl = Get-Acl -Path 'C:\Program Files'
$accessLisss="r3 fiji-r3">