We are in the process of migrating from a legacy Active Directory Domain into a new Active Directory Domain. There is a 2 way Trust between the domains, and my account has full rights to the source and destination file structures.
I want to copy a file share from the legacy domain to the new domain and bring over all NTFS rights during the copy. Oh and by the way, the initial copy needs to be directory structure only so if I do have to perform permission maintenance, it is much quicker without the files.
I have attempted the following commands and none have worked... The new directories inherit the permissions of the new parent versus applying the legacy permissions:
- Robocopy <Source> <Destination> /e /z /SEC /xf *
- xcopy <Source> <Destination> /T /E /O /C
- Get-ChildItem -Path <SOURCE>| ForEach-Object {Copy-Item -LiteralPath $_.FullName -Destination <Target>; Get-Acl -Path $_.FullName | Set-Acl -Path <Target>\$(Split-Path -Path $_.FullName -Leaf)"}
I would greatly appreciate any assistance.
Thanks!
- Edited by TE2011 Wednesday, September 02, 2015 6:36 PM Spelling