Solved

Robocopy - network path asking for username and password

Posted on 2006-06-27
9
34,701 Views
Last Modified: 2010-06-26
i use robocopy for running backups.  for one particular path, it's asking for a username and password.  here is the command in the batch file:
Rem Backup to duplicate MAS database
robocopy x:\DBServer\Mon \\qm_it\Mas90_on_qm_it /MIR /r:1 /w:1 >> c:\log\mon.txt

here is the result in the log:
   Source : x:\DBServer\Mon\
     Dest : \\qm_it\Mas90_on_qm_it\
    Files : *.*
  Options : *.* /S /E /PURGE /MIR /R:1 /W:1
ERROR 1326 (0x0000052E) Accessing Destination Directory \\qm_it\Mas90_on_qm_it\
Logon failure: unknown user name or bad password.

on the computer called qm_it, i have a folder called MAS90 which is set for sharing with Everyone (full permissions).  i named the share MAS90_on_qm_it so that it is not confused (there are other MAS90 folders on the network).  i dont think there's a problem with the share because i can access it with the proper username and password.  

do i need to set up a local account on qm_it that has the same username and password for the account on the computer that runs the backup?  or can i put something in the batch script which has the username and password?  other ideas?

thanks
0
Comment
Question by:zephyr_hex (Megan)
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 1

Assisted Solution

by:Zabulon777
Zabulon777 earned 150 total points
ID: 16994029
You are correct you will have to give that foler(server) backup account rights... it is a pure permission issue!

0
 
LVL 43

Author Comment

by:zephyr_hex (Megan)
ID: 16994218
i have checked the permissions.  full permissions are set for Everyone (Full Control)
i have also set security so that Everyone has Full Control

what else needs to be done for permissions on the share?
0
 
LVL 43

Author Comment

by:zephyr_hex (Megan)
ID: 16994276
actually, i did not have Security set for Everyone (permissions were set for Everyone) ... i just did that.  backup is set to attempt to run again tonight.  will post results.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Expert Comment

by:cisco_2k2
ID: 16995236
Zephyr,

Did you try using the local adminstrator account of the target system?
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 350 total points
ID: 16999246
If the two aren't in the same domain then I suggest you either.

1. Create a username / password same as the backup one on the other computer or
2. Connect in your script to the server first, i.e.

REM Authenticate to server
net use \\server\ipc$ /user:username password
robocopy ...
REM Disconnect from server
net use \\server\ipc$ /delete
0
 
LVL 20

Expert Comment

by:jimmymcp02
ID: 17002500
well here is what i  would use


first of map the drive and then execute the code

Rem Mapping X
net use x: \\servername\c$  password /user:admin
robocopy x:\DBServer\Mon \qm_it\Mas90_on_qm_it /MIR /r:1 /w:1 >> c:\log\mon.txt
Rem Disconnect drive
net use x: /d


Also i was looking at you script

robocopy x:\DBServer\Mon \\qm_it\Mas90_on_qm_it /MIR /r:1 /w:1 >> c:\log\mon.txt

i think that you got a double \\ i dont that think it works if you do that but i could be wrong.

Let us know how that goes.

0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17002775
using ipc$ works regardless of admin rights which is why I use it

Steve
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17004671
I imagine the \\ is because he is trying to copy to a server called qm_it , share called Mas90_on_qm_it.  In any case authentication is probably all that is needed.  See my post.
0
 
LVL 43

Author Comment

by:zephyr_hex (Megan)
ID: 17004720
yes dragon-it ... you are correct about the \\

changing the Security so that Everyone has access worked (i had added sharing/permissions but that wasn't enough)

dragon-it's suggestion also works.
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 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