We have a file server and I want to replicate the folder structure to another server in a new domain. How can I export the folder structure and import it on the new server using powershell? My end goal is to get all the data moved and the right permissions applied, but I cannot establish a trust between the old domains and new so I cannot use the ADMT. I was going to recreate the user accounts and groups and reapply the permissions.
Would there be a way to export the folder structure and applied permissions and the reimport it on the new server? The group names will not be the same but I can do a find and replace on the text to modify the group names.