• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

copy files to workgroup pc

hi there

I need to be able to to create a script to copy files from the 2003 Active Directory domain to a windows 7 PC in a separate workgroup.
Because its a workgroup PC, I will need to supply the credentials of a user account on that PC when runnnig the script.
Any idea how to do this?
1 Solution
Sure... setup the copy in a .bat file.
Use the scheduler service to run the .bat file, and enter the credentials there, not in the copy command.
Robocopy is your friend.

C:\path\robocopy.exe \\Server1\share\  D:\sharecopy\ /E /R:0 /NP > C:\Copylog.txt
Check the end of the log for the results. Look for count of Missed files.

stack888Author Commented:
thanks for that. I actually found an alternate way by putting a net use command in the batch file and then remove the drive mapping in the final step but robocopy would be a good option too. Cheers!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now