I know this:
how to script out all the permissions in a folder using powershell?
$Acl = Get-Acl "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER01\MSSQL\DATA"
Set-Acl "C:\Program Files\Microsoft SQL Server\test" $Acl
But how, instead of copying and overwriting the current permissions on the target folder, just add the complementary permissions?
Something like, copying all permissions from source to target, but leaving the existent permissions of target remain there.
at the end the target folder will have all of its previous permissions plus all the permissions on source folder.