Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

robocopy permissions

Posted on 2008-06-25
3
Medium Priority
?
2,857 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 85

Accepted Solution

by:
oBdA earned 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

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 …
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

636 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