Solved

robocopy permissions

Posted on 2008-06-25
3
2,833 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
Comment Utility
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
Comment Utility
but I need to schedule this robocopy task too? what would the syntax be?
0
 
LVL 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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

10 Experts available now in Live!

Get 1:1 Help Now