Copy folder w/ user permission intact

Discussion in 'Windows Server' started by Roget Luo, Nov 26, 2006.

  1. Roget Luo

    Roget Luo Guest

    I want to copy some folders and subfolders from one server to another,
    however, not sure how to do that and keep the folder permissions. I tried
    using XCopy, but it keep telling me that 0 files and folder was copied.

    Thanks in advance.
     
    Roget Luo, Nov 26, 2006
    #1
    1. Advertisements

  2. Roget Luo

    roga Guest

    See http://support.microsoft.com/Default.aspx?kbid=310316

    You can modify how Windows Explorer handles permissions when objects are
    copied or moved to another NTFS volume. When you copy or move an object to
    another volume, the object inherits the permissions of its new folder.
    However, if you want to modify this behavior to preserve the original
    permissions, modify the registry as follows.

    WARNING: If you use Registry Editor incorrectly, you may cause serious
    problems that may require you to reinstall your operating system. Microsoft
    cannot guarantee that you can solve problems that result from using Registry
    Editor incorrectly. Use Registry Editor at your own risk. 1. Click Start,
    click Run, type regedit in the Open box, and then press ENTER.
    2. Locate and then click the following registry key:
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

    3. On the Edit menu, click Add Value, and then add the following
    registry value:
    Value name: ForceCopyAclwithFile
    Data type: DWORD
    Value data: 1
    4. Exit Registry Editor.


    Regards

    Roga
     
    roga, Nov 26, 2006
    #2
    1. Advertisements

  3. Roget Luo

    T. Uranjek Guest

    Hi!

    Use Windows Backup to backup folders on first server and then restore them
    on another.

    HTH

    Toni
     
    T. Uranjek, Nov 26, 2006
    #3
  4. I think that xcopy.exe or robocopy.exe (with the appropriate
    switches) would be a far less cumbersome solution.
     
    Pegasus \(MVP\), Nov 26, 2006
    #4
  5. Roget Luo

    T. Uranjek Guest

    Hi!

    For experinced user maybe, apparently Roget had problems with xcopy.

    Toni
     
    T. Uranjek, Nov 27, 2006
    #5
  6. robocopy.exe (as Pegasus suggested)

    there are a lot of switches, and you want to be careful you specify the
    correct ones

    get it
    try it
    test it
    use it

    rgds,
    _Edwin.
     
    Edwin vMierlo, Dec 6, 2006
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.