Get-Acl -Path SourceFolder | Set-Acl -Path DestinationFolder
Here is an example:
- There is a folder on the G: drive called 'Medicine'
- There is a junction point on 'E:\Shared\Medicine' which points to the folder.
- The permissions on the junction point are identical and complex
Some hero then deletes the junction point. This is then recreated thus:
mklink /j "E:\Shared\Medicine" "G:\Medicine"
We can then restore the junction link's missing DACL using PowerShell thus:
Get-Acl -Path "G:\Medicine" | Set-Acl -Path "E:\Shared\Medicine"
Post a Comment