Pete
asked on
robocopy run as a specified user
I need to run a robocopy script as a certain user (\\computername\accountnam e) can I specify this somewehere within the script?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i copied this from robocopy manual .
You can configure the Schedule service to log on as a user account. Once the user account has been granted appropriate access to source and destination servers, you can schedule Robocopy jobs to copy files between them.
To configure the Schedule service to log on as a user account
1. In Services in Control Panel, click Schedule, and then click Startup.
2. In the Startup Type box, click Automatic or Manual.
3. In the Log On As box, select the account in which to run the service, and specify the correct logon password.
another way that i am thinking of is to create a batch file , and create a service with the apropriate credentials to run it.
hope that helps