I've had to do things similar to this for various reasons. You'll need to use something like robocopy. Test it out on a temp directory first.
https://blogs.technet.microsoft.com/filecab/2008/07/31/robocopy-mir-switch-mirroring-file-permissions/
Basically: ROBOCOPY <source> <target> /MIR /SEC ...
Search found 2 matches
- 19 Apr 2017, 16:29
- Forum: Help
- Topic: How sync ACL's AFTER initial copy/sync?!
- Replies: 3
- Views: 3398
- 18 Apr 2017, 00:47
- Forum: General Discussion
- Topic: FFS: Scheduled Task - Powershell, Event log, and Email alert
- Replies: 1
- Views: 2118
FFS: Scheduled Task - Powershell, Event log, and Email alert
I wanted my FFS tasks to write to the event log as well as send an email if a task was not successful. All the solutions I found were either overly complex, not complete, or required another 3rd party tool. I also wanted to do it all in Powershell. I'm posting my PS script here to hopefully help ...