• We've upgraded our forums. Please post any issues/requests in this thread.

Need some help with making batch files

Joined
Oct 19, 2007
Messages
6,201 (1.67/day)
Likes
982
System Name Phantom Skylake
Processor Intel i5 6600k @ 4.5GHZ w/ Corsair H80i CPU AiO w/Corsair 120mm SP120 RBG fan
Motherboard Asus z170-A
Cooling 4x120mm Corsair SP120 RBG fans
Memory G.skill DDR4 3200MHz 2x4GB (Soon to be Corsair Vengeance RBG)
Video Card(s) Asus DirectCUII GTX 980 STRIX
Storage Samsung 960 EVO m.2, Samsung 850 EVO 1TB SSD, 2TB backup, 16TB Synology DS1515+ RAID-5
Display(s) Acer Predator 34" 3440x1440
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Void Wireless RGB
Power Supply Corsair HX750w Professional Series
Mouse Logitech G602s
Keyboard Corsair K70 Rapidfire
Software Windows 10 x64 Professional
Benchmark Scores Coming Soon
#1
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
1,625 (0.35/day)
Likes
552
Location
The Pico Mundo Grill
System Name Commercial towing vehicle Nostromo
Processor R7 1700X Base Clock @4.000.000.000 Hz
Motherboard Crosshair Hero VI (BIOS 1701)
Cooling Hydro H110i V2 High Performance
Memory 2x8 GB Dominator CMD16GX4M2B3200C16 v4.31
Video Card(s) 970 STRIX
Storage 960 EVO M2 500 GB w. EKWB EK-M.2 NVMe nickel heatsink / UV400 480 GB / Red PRO 4 TB
Display(s) VG248QE
Case HAF XB
Audio Device(s) Onboard / JDS Labs O2 AMP / K550 headphones
Power Supply AX 860
Mouse KANA
Keyboard K60
Software Win 10 Pro x64 / KIS 2018
Benchmark Scores 2141 lightyears per hour.......
#2
Joined
Nov 19, 2012
Messages
750 (0.41/day)
Likes
430
System Name Chaos
Processor Intel Core i5 4590K @ 4.0 GHz
Motherboard MSI Z97 MPower MAX AC
Cooling Arctic Cooling Freezer i30 + MX4
Memory 2x4 GB Kingston HyperX Beast 2400 GT/s CL11
Video Card(s) Sapphire HD7950 Vapor X, 800/1400 @ 1.075V/1.45V
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 Seasonic SS-380GB
Mouse CM Storm Recon
Keyboard CM Storm Quickfire Pro (MX Red)
#3
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
6,201 (1.67/day)
Likes
982
System Name Phantom Skylake
Processor Intel i5 6600k @ 4.5GHZ w/ Corsair H80i CPU AiO w/Corsair 120mm SP120 RBG fan
Motherboard Asus z170-A
Cooling 4x120mm Corsair SP120 RBG fans
Memory G.skill DDR4 3200MHz 2x4GB (Soon to be Corsair Vengeance RBG)
Video Card(s) Asus DirectCUII GTX 980 STRIX
Storage Samsung 960 EVO m.2, Samsung 850 EVO 1TB SSD, 2TB backup, 16TB Synology DS1515+ RAID-5
Display(s) Acer Predator 34" 3440x1440
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Void Wireless RGB
Power Supply Corsair HX750w Professional Series
Mouse Logitech G602s
Keyboard Corsair K70 Rapidfire
Software Windows 10 x64 Professional
Benchmark Scores Coming Soon
#4
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
9,787 (2.23/day)
Likes
3,777
Location
Manchester, NH
System Name Working on it ;)
Processor I7-4790K
Motherboard MSI Z97
Cooling Be Quiet Pure Rock Air
Memory 16GB 4x4 G.Skill CAS9 2133 Sniper
Video Card(s) Intel IGP (Dedicated GPU TBD)
Storage WD 320 / 500KS / 500KS / 640KS / 640LS / 640LS / 640LS / 1TBFAEX and a NAS with 2x2Tb WD Black
Display(s) 24" DELL 2405FPW
Case Rosewill Challenger
Audio Device(s) Onboard + HD HDMI
Power Supply Corsair HX750 (love it)
Mouse Logitech G5
Software Win 7 Pro
#5
Joined
Oct 19, 2007
Messages
6,201 (1.67/day)
Likes
982
System Name Phantom Skylake
Processor Intel i5 6600k @ 4.5GHZ w/ Corsair H80i CPU AiO w/Corsair 120mm SP120 RBG fan
Motherboard Asus z170-A
Cooling 4x120mm Corsair SP120 RBG fans
Memory G.skill DDR4 3200MHz 2x4GB (Soon to be Corsair Vengeance RBG)
Video Card(s) Asus DirectCUII GTX 980 STRIX
Storage Samsung 960 EVO m.2, Samsung 850 EVO 1TB SSD, 2TB backup, 16TB Synology DS1515+ RAID-5
Display(s) Acer Predator 34" 3440x1440
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Void Wireless RGB
Power Supply Corsair HX750w Professional Series
Mouse Logitech G602s
Keyboard Corsair K70 Rapidfire
Software Windows 10 x64 Professional
Benchmark Scores Coming Soon
#6
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
9,787 (2.23/day)
Likes
3,777
Location
Manchester, NH
System Name Working on it ;)
Processor I7-4790K
Motherboard MSI Z97
Cooling Be Quiet Pure Rock Air
Memory 16GB 4x4 G.Skill CAS9 2133 Sniper
Video Card(s) Intel IGP (Dedicated GPU TBD)
Storage WD 320 / 500KS / 500KS / 640KS / 640LS / 640LS / 640LS / 1TBFAEX and a NAS with 2x2Tb WD Black
Display(s) 24" DELL 2405FPW
Case Rosewill Challenger
Audio Device(s) Onboard + HD HDMI
Power Supply Corsair HX750 (love it)
Mouse Logitech G5
Software Win 7 Pro
#7
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
6,201 (1.67/day)
Likes
982
System Name Phantom Skylake
Processor Intel i5 6600k @ 4.5GHZ w/ Corsair H80i CPU AiO w/Corsair 120mm SP120 RBG fan
Motherboard Asus z170-A
Cooling 4x120mm Corsair SP120 RBG fans
Memory G.skill DDR4 3200MHz 2x4GB (Soon to be Corsair Vengeance RBG)
Video Card(s) Asus DirectCUII GTX 980 STRIX
Storage Samsung 960 EVO m.2, Samsung 850 EVO 1TB SSD, 2TB backup, 16TB Synology DS1515+ RAID-5
Display(s) Acer Predator 34" 3440x1440
Case Corsair 570x RBG Tempered Glass
Audio Device(s) Onboard / Corsair Void Wireless RGB
Power Supply Corsair HX750w Professional Series
Mouse Logitech G602s
Keyboard Corsair K70 Rapidfire
Software Windows 10 x64 Professional
Benchmark Scores Coming Soon
#8
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. :-\