• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1072
  • Last Modified:

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.
3 Solutions
Why not assign it as a startup or logon script see http://techsupt.winbatch.com/ts/T000001048F90.html
Joseph DalyCommented:
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

Open in new window

What are you trying to do with the BAT file?  There may be alternatives.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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?
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.
Ben Personick (Previously QCubed)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.
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.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now