Solved

copy files to workgroup pc

Posted on 2010-08-26
2
497 Views
Last Modified: 2012-05-10
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?
thanks
0
Comment
Question by:stack888
2 Comments
 
LVL 12

Accepted Solution

by:
FDiskWizard earned 500 total points
ID: 33536578
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.

MyCopy.bat:
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.



0
 
LVL 2

Author Closing Comment

by:stack888
ID: 33536818
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!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
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 to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

867 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

16 Experts available now in Live!

Get 1:1 Help Now