Link to home
Start Free TrialLog in
Avatar of Pete
PeteFlag for United Kingdom of Great Britain and Northern Ireland

asked on

robocopy run as a specified user

I need to run a robocopy script as a certain user (\\computername\accountname) can I specify this somewehere within the script?

ASKER CERTIFIED SOLUTION
Avatar of Miguel Angel Perez Muñoz
Miguel Angel Perez Muñoz
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hello.
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