?
Solved

Admin

Posted on 2013-02-05
1
Medium Priority
?
215 Views
Last Modified: 2013-03-11
Hi There,

looking for a script that will copy multiple files to multiple PCs on a network and overwrite if necessary. we need it to copy from a shared drive to a specific folder. and have line for the admin username and pass so it wont denied permissions.

Please Help.

Thanks
0
Comment
Question by:visionsupport
1 Comment
 
LVL 16

Accepted Solution

by:
Chris H earned 1500 total points
ID: 38856893
Sounds like you need to investigate the RUNAS command as well as using:
echo y | copy "\\share\files\*.*" "%userprofile\appdata\microsoft"
to supress prompting for overwriting.  I think you can also use /y

If you'd like to provide more information like the server\share name and the specific folder, I could make something pretty easy.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

862 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