Solved

why can't is access a destination server using robocopy

Posted on 2016-07-27
10
53 Views
Last Modified: 2016-07-28
I am trying to use robocopy to copy files and directories from a windows 2003 server to a windows 2012 server.   I continue to get error 5 saying it cannot access the destination directory...i have checked all permissions and shares and they seem to be correct....i am logged on as a domain administrator and both machines are in the domain.....any thoughts?
0
Comment
Question by:Roger Goguen
  • 4
  • 4
  • 2
10 Comments
 
LVL 20

Expert Comment

by:CompProbSolv
ID: 41731292
Could you post the command line you are trying to use for robocopy?
Do copy or xcopy work with similar arguments?
0
 

Author Comment

by:Roger Goguen
ID: 41731316
here is the command   :  ROBOCOPY  "\\sourceserver\humanresources"  "\\destinationserver\shares"  /MIR /COPYALL /LOG:TEST /N
XCOPY seemed to work without those arguments, but I wanted to bring over the security permissions
0
 
LVL 20

Expert Comment

by:CompProbSolv
ID: 41731329
I'm not familiar with the /N switch and am not finding it when running robocopy /? , though I'd expect that to give a different error if it is not valid.

I'm afraid that someone else is going to have to unravel this one.
0
 

Author Comment

by:Roger Goguen
ID: 41731334
sorry ...the switch should have been /np
0
 
LVL 7

Accepted Solution

by:
Gauthier earned 500 total points
ID: 41731352
On which server did your run the command?
Did you run the command from an elevated prompt?
Copying the owner O and possibly audit U info require elevated privileges, copying the security S does not.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 7

Expert Comment

by:Gauthier
ID: 41731362
Also you may want to add /DCOPY:DAT to preserve directory timestamp.
0
 

Author Comment

by:Roger Goguen
ID: 41731368
I ran the command through powershell on the Windows 2012 machine....I did run as administrator with an elevated prompt
0
 
LVL 7

Expert Comment

by:Gauthier
ID: 41731397
if the xcopy works, I assume the share permissions are good.
That leave as potential problems:
Attempted delete of file in use (caused by /MIR)
Attempted delete of file with no permissions (also caused by /MIR)
Try it witouth /mir then is successful, check for open file and check that administrator has all right needed for deletion on every file/folder in target
0
 
LVL 7

Expert Comment

by:Gauthier
ID: 41731406
Also try with /copy:DAT if that works, then there are trouble with the existing security (administrator right was removed on some files)
0
 

Author Closing Comment

by:Roger Goguen
ID: 41733316
I double checked and was not sure that PowerShell was running in administrator mode...I think that was the problem  thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Learn about cloud computing and its benefits for small business owners.
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

929 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now