Avatar of jshilge
jshilge
Flag for United States of America asked on

Using GPO to copy a folder with multiple files from local file server

I need to have a folder with 7 files copied from the local file server, to the C drive of every computer in my domain. I have 5 location so thats 5 different files servers. The total file size for the files is 13MB.  How can I do it where it copies from a local file server once, instead of a single server from multiple locations.

Thanks
Active DirectoryWindows Server 2008Windows Server 2003

Avatar of undefined
Last Comment
jshilge

8/22/2022 - Mon
SeaSenor

is this a one time copy, or every time they log on?
jshilge

ASKER
One time copy
SeaSenor

so you want all computers in the domain to get a copy from one server at one location?

You can probably use robocopy, and a batch file.

How many computers are you talking about?
Are they on most all of the time?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
jshilge

ASKER
No, I actually have I have 5 locations and one server at each location. I want to know if its possible for all the computers to get the folder from whatever the local server is. Total number of computers are 350.
SeaSenor

it's possible.

have you used robocopy before?
jshilge

ASKER
Yes I have but how would I use it in this situation?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
SeaSenor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
jshilge

ASKER
Ok but what about all the other locations? how does robocopy know the name of the local server for each location?
SeaSenor

you would enter the server name and save that file... then apply it to the computers in the location according to

basically you'd end up with 5 batch files almost identical, except the servernames, or foldernames (if different)

I'm assuming you have locations organized by OU in Active Directory?

then just apply that to the proper OU in a start up script setting.
jshilge

ASKER
Ya sorry I forgot to mention that we do not have the locations organized by OU. All the users are located under Users and All the computers are still in the Computers OU.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
SeaSenor

Is that something you could do?  

Might be a project worth taking on.


If not, you can send the files using robocopy to the computers by way of list....but again, the computer would have to be connected and running.

I'm sure there is a way to code this and have the script compare an attribute for the location somewhere and then act accordingly, but it would take me a while to get that written.

There are other chaps here that could whip it out a lot quicker than me.

Getting the computers in OU's by location could be beneficial in the future, as well as helping accomplish this task.

It's quite easy....
jshilge

ASKER
I know it is and it is on my official to do list, but for now I need to know how to copy a folder with files through GPO objects. I gotta get this done by tomorrow.
SeaSenor

oh...quickly..

here's a link for reference... either now or later for the GPO part.

http://technet.microsoft.com/en-us/library/cc775970(v=ws.10)

next...
do you have the locations (servers or clients) separated or classified in any way that they can be distinguishable from one another?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SeaSenor

if you can export the computer names into text files, and arrange them by location you can send the files out in this fashion...

see attached file.
EEcopy-files-to-computers.txt
SeaSenor

you would need computer1.txt  to list all the computers that need to access the server in location 1.

then a list of computers for location 2,  etc.

natually you will need to modify the names of the servers, locations and folders in the script but that's easy enough.
then save and rename to a .bat extension and you can run it.

It works well, just takes that initial separation of putting the computers in lists. You can export all workstations into excel or a text file from active directory, and seperate then into the proper lists per server.

you won't have to do anything in group policy with this method.... but the computers will have to be powered on and connected so they can receive the files when you execute.

It will create a log file with the successful computers on it, so you can review any failures and re-attempt if needed.

sorry.. here is a better version for you.
EEcopy-files-to-computers.txt
Nagendra Pratap Singh

How do you define a local server?

Do you have a naming system like NYCFS001, NYCWKSTN001, SFODC0001 etc?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
jshilge

ASKER
Reason for accepting multiple comments is because I took two ideas from the expert and creating my own fix.