Solved

robocopy permissions

Posted on 2008-06-25
3
2,845 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 83

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
backup computers on Workgroup 10 61
Accessing SQL Server Instance from outside the network 29 110
Big Problem with Redirected Folder 8 44
Downgrade From Domain to WorkGroup 3 42
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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