Solved

robocopy permissions

Posted on 2008-06-25
3
2,847 Views
Last Modified: 2013-12-23
Im trying to copy a folder from a windows 2003 server on a domain to a windows 2000 server in a seperate workgroup on the LAN using robocopy but of course it keeps failing with security permissions on the workgroup server when run from the domain server.  Are there any switches that I can use in robocopy to specify which account to use?

I am using the command

robocopy <source> <destination> /E /MIR /R:3 /W:3
0
Comment
Question by:dazzler1971
3 Comments
 
LVL 3

Expert Comment

by:bribri007
ID: 21866326
you can use a "runas" command from the command prompt and use robocopy that way

c:\runas /user:USERNAME robocopy ....
0
 

Author Comment

by:dazzler1971
ID: 21866354
but I need to schedule this robocopy task too? what would the syntax be?
0
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 21867332
You can connect to the remote machine from the domain machine by running robocopy from a batch script. This will expose the workgroup password in the script, but depending on what the security considerations are, this can be neglected if you can use NTFS permissions to lock down the folder in which the script is so that only people can access this file who can access the workgroup machine anyway.

net use \\WorkgroupMachine\ipc$ TopSecretPassword /user:LocalUserOnWorkgroupMachine
robocopy <source> <destination> /E /MIR /R:3 /W:3
net use \\WorkgroupMachine\ipc$ /delete

Or (and this is the safer solution) create a dedicated account on the domain that you use to schedule the task, create an account with the same name and the same password on the workgroup machine. Give both accounts the necessary permissions on their respective scope, and set both passwords to "Never expire". When the task runs on the domain machine, the connection will be established because of the identical username and password.
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

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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