Solved

Robocopy as another user.

Posted on 2012-04-13
4
173 Views
Last Modified: 2012-05-07
I am trying to make an application or script to run robocopy as a server administrator in order to copy folder structures and keep the permissions intact.

I have tried various ways but with little to no success.

I have tried creating an application to start the program as a process, passing the username, password and domain, but this runs into an issue with multiple users not being able to run this application.  Robocopy just flashes for a moment and I cannot see the particular issue but it seems that it the username gets locked up to a single user.

I have tried just running the program with runas with the /netonly tags and it does seem to work, but in order to automate it i build an application to send the keystrokes to the console the issue arose that if the focus is shifted to another application it just sends the keystrokes to whatever is open.

A coworker suggested using windows script host but before i delve into that I guess I would like to ask if there is any way to get this running by any other means I have over looked.

to recap i need a program, process, script or whatever to copy a folder structure on a server to another location on the same server and preserve the permissions.
0
Comment
Question by:mjelec
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
stavros41 earned 500 total points
ID: 37842795
Just run it from Task Scheduler, you can specify the user to run as.
0
 

Author Comment

by:mjelec
ID: 37843410
Could that be used to to add variable arguments?  For instance i need this to be run on demand and copy the template folders to a specified path.
0
 
LVL 6

Expert Comment

by:stavros41
ID: 37843471
I know you can do this with Windows 2008 yes, there is an add agruments box
0
 

Author Comment

by:mjelec
ID: 37844869
How would one do a variable in the arguments box?
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

770 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