locked
Transferring Roaming profiles from windows server 2003 to Windows server 2012. Robocopy gives Error 5 ACCESS DENIED RRS feed

  • Question

  • Hey guys, 

    I have been trying to copy the roaming profiles from my 2003 server to the 2012 after having successfully migrated Active Directory DS and DHCP. I used robocopy with the following command, robocopy /E /COPYALL \\DC-2003\profile C:\profile 

    When it tries to copy the file NTuser.dat it gives an ERROR 5 saying ACCESS DENIED. 

    I checked the permission for both the folders and everything looks fine to me. I have set the DOMAIN\Administrator as full control, and also added individual DC's in case that was the issue and gave them too full control. Yet still same error. 

    I'd appreciate help. Thanks in advance. 

    • Moved by Yan Li_ Thursday, May 9, 2013 7:03 AM
    Friday, May 3, 2013 4:25 PM

Answers

  • Hello,

    please try again with /B (If you copy NTFS security information (ACLs) along with file data, it is possible to copy files to which you have read access, but not write access. After such a file is copied once, and the ACLs are applied, you may find that to get an “Access Denied” error when you try to copy the file again. In this situation you should use the /B or /ZB switch to copy the files in Backup Mode. )

    And as this is not Directory services related, please ask this in http://social.technet.microsoft.com/Forums/en-US/winservergen/threads


    Best regards

    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/

    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.


    • Edited by Meinolf Weber Saturday, May 4, 2013 3:32 PM
    • Marked as answer by Yan Li_ Monday, May 13, 2013 2:03 AM
    Saturday, May 4, 2013 3:25 PM
  • Hi,

     

    I’d suggest achieving the goal with backup-restore mode by using build in ntbackup utility because there is an option “Restore File Permission” could help us remain permission and ownership settings.

     

    Using the Windows NT Backup Utility

    http://technet.microsoft.com/en-us/library/cc722506.aspx

     

    Windows NT Backup and Security

    http://support.microsoft.com/kb/104221

     

    Another way is using Icacls tools to backup and restore permission settings:

     

    How to Back Up and Restore NTFS and Share Permissions

    http://blogs.technet.com/b/askds/archive/2008/11/24/how-to-back-up-and-restore-ntfs-and-share-permissions.aspx

     

    Hope these help

     

    Thanks.

     



    Cataleya Li
    TechNet Community Support

    • Marked as answer by Yan Li_ Monday, May 13, 2013 2:03 AM
    Thursday, May 9, 2013 7:31 AM

All replies

  • Hello,

    please try again with /B (If you copy NTFS security information (ACLs) along with file data, it is possible to copy files to which you have read access, but not write access. After such a file is copied once, and the ACLs are applied, you may find that to get an “Access Denied” error when you try to copy the file again. In this situation you should use the /B or /ZB switch to copy the files in Backup Mode. )

    And as this is not Directory services related, please ask this in http://social.technet.microsoft.com/Forums/en-US/winservergen/threads


    Best regards

    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/

    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.


    • Edited by Meinolf Weber Saturday, May 4, 2013 3:32 PM
    • Marked as answer by Yan Li_ Monday, May 13, 2013 2:03 AM
    Saturday, May 4, 2013 3:25 PM
  • Hi,

     

    I’d suggest achieving the goal with backup-restore mode by using build in ntbackup utility because there is an option “Restore File Permission” could help us remain permission and ownership settings.

     

    Using the Windows NT Backup Utility

    http://technet.microsoft.com/en-us/library/cc722506.aspx

     

    Windows NT Backup and Security

    http://support.microsoft.com/kb/104221

     

    Another way is using Icacls tools to backup and restore permission settings:

     

    How to Back Up and Restore NTFS and Share Permissions

    http://blogs.technet.com/b/askds/archive/2008/11/24/how-to-back-up-and-restore-ntfs-and-share-permissions.aspx

     

    Hope these help

     

    Thanks.

     



    Cataleya Li
    TechNet Community Support

    • Marked as answer by Yan Li_ Monday, May 13, 2013 2:03 AM
    Thursday, May 9, 2013 7:31 AM