• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Need some help with making batch files

Joined
Oct 19, 2007
Messages
8,193 (1.36/day)
Processor Intel i9 9900K @5GHz w/ Corsair H150i Pro CPU AiO w/Corsair HD120 RBG fan
Motherboard Asus Z390 Maximus XI Code
Cooling 6x120mm Corsair HD120 RBG fans
Memory Corsair Vengeance RBG 2x8GB 3600MHz
Video Card(s) Asus RTX 3080Ti STRIX OC
Storage Samsung 970 EVO Plus 500GB , 970 EVO 1TB, Samsung 850 EVO 1TB SSD, 10TB Synology DS1621+ RAID5
Display(s) Corsair Xeneon 32" 32UHD144 4K
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Virtuoso XT Wireless RGB
Power Supply Corsair HX850w Platinum Series
Mouse Logitech G604s
Keyboard Corsair K70 Rapidfire
Software Windows 11 x64 Professional
Benchmark Scores Firestrike - 23520 Heaven - 3670
Ive never really done batch files before so I need a little bit of help. I work for a company that has between 50-100+ users and the computers here DESPERATELY need some attention in regards to maintenance. Some computers are 6 years old and have never been defragged! :banghead:

So basically this is what I (we) are looking to accomplish. We want to deploy AVG 2013 on computers that currently do not have it installed whether its an older version of AVG (2012 onward) or none at all. We also want to deploy a better disk defragger (currently looking at Auslogics disk defrag) at the moment.

Is there anyway we can automate the deployment of these two programs via a batch file to all the computers in the network?

Any help is greatly appreciated! :rockout:

Thanks guys!
 
Joined
Jan 31, 2005
Messages
2,053 (0.29/day)
Location
Denmark
System Name Commercial towing vehicle "Nostromo"
Processor 5800X3D
Motherboard X570 Unify
Cooling EK-AIO 360
Memory 32 GB Fury 3666 MHz
Video Card(s) 4070 Ti Eagle
Storage SN850 NVMe 1TB + Renegade NVMe 2TB + 870 EVO 4TB
Display(s) 25" Legion Y25g-30
Case Lian Li LanCool 216 v2
Audio Device(s) B & W PX7 S2e
Power Supply HX1500i
Mouse Harpe Ace Aim Lab Edition
Keyboard Scope II 96 Wireless
Software Windows 11 23H2
Joined
Nov 19, 2012
Messages
753 (0.18/day)
System Name Chaos
Processor Intel Core i5 4590K @ 4.0 GHz
Motherboard MSI Z97 MPower MAX AC
Cooling Arctic Cooling Freezer i30 + MX4
Memory 4x4 GB Kingston HyperX Beast 2400 GT/s CL11
Video Card(s) Palit GTX 1070 Dual @ stock
Storage 256GB Samsung 840 Pro SSD + 1 TB WD Green (Idle timer off) + 320 GB WD Blue
Display(s) Dell U2515H
Case Fractal Design Define R3
Audio Device(s) Onboard
Power Supply Corsair HX750 Platinum
Mouse CM Storm Recon
Keyboard CM Storm Quickfire Pro (MX Red)
You need to use an .msi package for deployment, if you're on a domain. If not, well... As VulkanBros has stated, AVG does have an integrated mass deployment option. So do all the other major antivirus product, alongside some form of remote monitoring and control. As for the defragmenter, seeing how you're still deciding on which one to get, why not look into one that offers a corporate license, as well as some form of remote reporting tool, perhaps also a scheduler, while you're at it?
 
Joined
Oct 19, 2007
Messages
8,193 (1.36/day)
Processor Intel i9 9900K @5GHz w/ Corsair H150i Pro CPU AiO w/Corsair HD120 RBG fan
Motherboard Asus Z390 Maximus XI Code
Cooling 6x120mm Corsair HD120 RBG fans
Memory Corsair Vengeance RBG 2x8GB 3600MHz
Video Card(s) Asus RTX 3080Ti STRIX OC
Storage Samsung 970 EVO Plus 500GB , 970 EVO 1TB, Samsung 850 EVO 1TB SSD, 10TB Synology DS1621+ RAID5
Display(s) Corsair Xeneon 32" 32UHD144 4K
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Virtuoso XT Wireless RGB
Power Supply Corsair HX850w Platinum Series
Mouse Logitech G604s
Keyboard Corsair K70 Rapidfire
Software Windows 11 x64 Professional
Benchmark Scores Firestrike - 23520 Heaven - 3670
You need to use an .msi package for deployment, if you're on a domain. If not, well... As VulkanBros has stated, AVG does have an integrated mass deployment option. So do all the other major antivirus product, alongside some form of remote monitoring and control. As for the defragmenter, seeing how you're still deciding on which one to get, why not look into one that offers a corporate license, as well as some form of remote reporting tool, perhaps also a scheduler, while you're at it?

We dont have that much of a budget (20k) and since im relatively new, I dont know if thats per month or what. We are already fast approaching that $20k mark as it is i dont think they'd be willing to fork over more money unless absolutely need be.

How would I put all this in a .msi package?

Edit: I did come across this little number. Still trying to figure out if it will do what I want.
 
Joined
Dec 6, 2005
Messages
10,881 (1.62/day)
Location
Manchester, NH
System Name Senile
Processor I7-4790K@4.8 GHz 24/7
Motherboard MSI Z97-G45 Gaming
Cooling Be Quiet Pure Rock Air
Memory 16GB 4x4 G.Skill CAS9 2133 Sniper
Video Card(s) GIGABYTE Vega 64
Storage Samsung EVO 500GB / 8 Different WDs / QNAP TS-253 8GB NAS with 2x10Tb WD Blue
Display(s) 34" LG 34CB88-P 21:9 Curved UltraWide QHD (3440*1440) *FREE_SYNC*
Case Rosewill
Audio Device(s) Onboard + HD HDMI
Power Supply Corsair HX750
Mouse Logitech G5
Keyboard Corsair Strafe RGB & G610 Orion Red
Software Win 10
Joined
Oct 19, 2007
Messages
8,193 (1.36/day)
Processor Intel i9 9900K @5GHz w/ Corsair H150i Pro CPU AiO w/Corsair HD120 RBG fan
Motherboard Asus Z390 Maximus XI Code
Cooling 6x120mm Corsair HD120 RBG fans
Memory Corsair Vengeance RBG 2x8GB 3600MHz
Video Card(s) Asus RTX 3080Ti STRIX OC
Storage Samsung 970 EVO Plus 500GB , 970 EVO 1TB, Samsung 850 EVO 1TB SSD, 10TB Synology DS1621+ RAID5
Display(s) Corsair Xeneon 32" 32UHD144 4K
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Virtuoso XT Wireless RGB
Power Supply Corsair HX850w Platinum Series
Mouse Logitech G604s
Keyboard Corsair K70 Rapidfire
Software Windows 11 x64 Professional
Benchmark Scores Firestrike - 23520 Heaven - 3670
Startup scripts is what we've got going on here:

Here's a guide to group policies to startup, shutdown, logon and logoff scripts, courtesy of M$:

http://technet.microsoft.com/en-us/library/cc753404.aspx

Scripting for group policy: http://technet.microsoft.com/en-us/scriptcenter/dd742261.aspx

Myself, I know the high level of what it does, but can't speak as to how to do it...

Im unsure if that is what I want though. Basically, I want to be able to take 3 programs (Firefox, Ccleaner, Auslogics Disk Defrag) and put them into a script/batch file (w/e you wanna call it) and execute it to run all 3 installers silently without any user interaction. I need this done on probably 75+ PCs. Assuming of course, this can be done.

I apologize in advance as this is all new to me so Im not sure what the terminology should be. I know what I want done, i just dont know how to properly execute it without coming in on a weekend or something and doing it PC by PC one at a time.
 
Joined
Dec 6, 2005
Messages
10,881 (1.62/day)
Location
Manchester, NH
System Name Senile
Processor I7-4790K@4.8 GHz 24/7
Motherboard MSI Z97-G45 Gaming
Cooling Be Quiet Pure Rock Air
Memory 16GB 4x4 G.Skill CAS9 2133 Sniper
Video Card(s) GIGABYTE Vega 64
Storage Samsung EVO 500GB / 8 Different WDs / QNAP TS-253 8GB NAS with 2x10Tb WD Blue
Display(s) 34" LG 34CB88-P 21:9 Curved UltraWide QHD (3440*1440) *FREE_SYNC*
Case Rosewill
Audio Device(s) Onboard + HD HDMI
Power Supply Corsair HX750
Mouse Logitech G5
Keyboard Corsair Strafe RGB & G610 Orion Red
Software Win 10
I apologize in advance as this is all new to me so Im not sure what the terminology should be.

If you are going to run batch files on startup, you need to know about group policies and all the stupid terms that Microsoft has adopted from thier developers.

There is software out there that has "push" deployment, but not many, you usually have to roll your own like you are trying to do.

Worse case (and our IT department does it here), have the user logoff. Assuming you can logon remotely as admin, you can push the software but you still have to do it indivdually that way.
 
Joined
Oct 19, 2007
Messages
8,193 (1.36/day)
Processor Intel i9 9900K @5GHz w/ Corsair H150i Pro CPU AiO w/Corsair HD120 RBG fan
Motherboard Asus Z390 Maximus XI Code
Cooling 6x120mm Corsair HD120 RBG fans
Memory Corsair Vengeance RBG 2x8GB 3600MHz
Video Card(s) Asus RTX 3080Ti STRIX OC
Storage Samsung 970 EVO Plus 500GB , 970 EVO 1TB, Samsung 850 EVO 1TB SSD, 10TB Synology DS1621+ RAID5
Display(s) Corsair Xeneon 32" 32UHD144 4K
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Virtuoso XT Wireless RGB
Power Supply Corsair HX850w Platinum Series
Mouse Logitech G604s
Keyboard Corsair K70 Rapidfire
Software Windows 11 x64 Professional
Benchmark Scores Firestrike - 23520 Heaven - 3670
Sorry things got really busy here at work and this kinda dropped a few rungs on the priority ladder.

I started looking into this more and was thinking of maybe just forcing these out using GPO in AD, but now my only problem is getting the exe files i want in .msi form. :-\
 
Top