[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Push out a BAT file using Group Policy

Posted on 2010-09-07
6
Medium Priority
?
1,069 Views
Last Modified: 2012-05-10
What's the best way to push out a BAT file to multiple clients using group policy?  We are using Windows Server 2003.
0
Comment
Question by:DHPBilcare
6 Comments
 
LVL 70

Accepted Solution

by:
KCTS earned 1200 total points
ID: 33620334
Why not assign it as a startup or logon script see http://techsupt.winbatch.com/ts/T000001048F90.html
0
 
LVL 35

Assisted Solution

by:Joseph Daly
Joseph Daly earned 400 total points
ID: 33620514
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
 
LVL 5

Expert Comment

by:jhill777
ID: 33620521
What are you trying to do with the BAT file?  There may be alternatives.
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
LVL 15
ID: 33621312
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
 

Author Comment

by:DHPBilcare
ID: 33621439
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
 
LVL 15

Assisted Solution

by:Ben Personick (Previously QCubed)
Ben Personick (Previously QCubed) earned 400 total points
ID: 33621628
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

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Loops Section Overview
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

830 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