Solved

How can I export the complete folder structure

Posted on 2014-12-01
3
203 Views
Last Modified: 2014-12-17
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.
0
Comment
Question by:Angela Owens
  • 2
3 Comments
 
LVL 54

Accepted Solution

by:
McKnife earned 500 total points
ID: 40474586
Hi.

ACLs work with security identifiers (SID). These will not be the same in the new Domain, so Tools that dump the old ACLs to apply them to the new file Server will fail, unless you Combine them with Subinacl. Subinacl is a tool that can map old ACL entries to new ones, to Substitute the old SID to the new.

So steps would be

1 dump ACLs using icacls .exe into an acl-file
2 Transfer data
3 apply the dumped ACLfile
4 use subinacl to Substitute old SID with current SIDs
0
 

Author Comment

by:Angela Owens
ID: 40475875
thank you!  I will give that a try!
0
 

Author Closing Comment

by:Angela Owens
ID: 40506154
I didnt have time to get the Subacl to work but I think if i had more time to devote to it, it would have worked.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
The next five years are sure to bring developments that are just astonishing, and we will continue to try to find the balance between connectivity and security. Here are five major technological developments from the last five years and some predict…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question