Create copy of directory structure with permission

Welcome Forums General PowerShell Q&A Create copy of directory structure with permission

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 6 years, 10 months ago.

  • Author
    Posts
  • #5413

    Member
    Points: 0
    Rank: Member

    by albertwt at 2013-01-08 22:48:26

    Hi,

    I'd like to do Fileserver migration, so can anyone here please assist me with the Powershell script which can do the Directory structure copy along with the ACL and permission (just the directory only without the files) ?

    Thanks

    by Infradeploy at 2013-01-09 06:46:20

    I'd use the trusted robocopy command line tool. Not as much fun but it is ready made.
    http://www.petri.co.il/forums/showthread.php?t=21509

    Add the '/sec' paramater to copy security

    by DonJ at 2013-01-09 11:24:19

    +1 on Robocopy. There's nothing native in PowerShell that will do this for you, and coding it would be pretty time-consuming. Robocopy is free and already does it.

    by megamorf at 2013-01-09 16:34:54

    Yes, robocopy or xcopy are the preferred tools to create a copy of a directory structure with its permissions.

The topic ‘Create copy of directory structure with permission’ is closed to new replies.