Push out a BAT file using Group Policy

What's the best way to push out a BAT file to multiple clients using group policy?  We are using Windows Server 2003.
DHPBilcareAsked:
Who is Participating?
 
Brian PierceConnect With a Mentor PhotographerCommented:
Why not assign it as a startup or logon script see http://techsupt.winbatch.com/ts/T000001048F90.html
0
 
Joseph DalyConnect With a Mentor Commented:
Where are you trying to push the file to? This can be very easily done with a computer startup script as mentioned above. Below is some code that will assist you with this task.
IF EXIST C:\somelocation\file.bat GOTO END1
copy \\server\share\file.bat c:\somelocation
:END1
exit

Open in new window

0
 
jhill777Commented:
What are you trying to do with the BAT file?  There may be alternatives.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Ben Personick (Previously QCubed)Lead Network EngineerCommented:
Agreed is this a logon script or a one time script or what?  and what do you mean by push out?  to have it run or have it copied?
0
 
DHPBilcareAuthor Commented:
We're going through an ERP project and the BAT file part configures the client computers to access the software.  I dont really know what the script does but believe if I link the BAT file to the startup script under group policy this will apply it to all.  I have been infomred that the BAT file does need to be run at startup each time the user logs in.
0
 
Ben Personick (Previously QCubed)Connect With a Mentor Lead Network EngineerCommented:
then just place the batch file you need to have run into your netlogon folder as whatever you want to call it.bat (Into \\YourDomain.com\Netlogon\  As TheBatchFile.bat )

Then simply add this line to your existing logon script batch file:
CALL "\\YourDomain.Com\Netlogon\TheBatchfile.bat"

Since this is the normal script repository all users have read permissions to run scripts from here so you should be good to go.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.