Solved

Robocopy as another user.

Posted on 2012-04-13
4
176 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
[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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 118
egit plugin on eclipse 8 102
Change the background and font colors in Notepad++ 5 158
ejb message driven bean mdb creation steps 2 37
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about a problem I had getting the GPS LocationListener working.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

730 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