robocopy run as a specified user

Posted on 2011-05-04
Last Modified: 2012-08-13
I need to run a robocopy script as a certain user (\\computername\accountname) can I specify this somewehere within the script?

Question by:Pete
    LVL 19

    Accepted Solution

    On script no, but you can schedule a job with special credentials or run robocopy using runas:
    LVL 13

    Expert Comment

    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

    Featured Post

    Are end users causing IT problems again?

    You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

    Join & Write a Comment

    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
    This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

    745 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

    15 Experts available now in Live!

    Get 1:1 Help Now