Solved

Need .bat to install all windows patches in a folder

Posted on 2014-10-09
4
128 Views
Last Modified: 2014-10-31
Hi

I used to have a very simple batch file that would silently install all windows patches that I had in a folder.  Could somebody please help me in recreating that?  Something along the lines of what I found in the link below, but I seem to remember it being a lot simpler...

http://www.msfn.org/board/topic/152020-batch-script-for-windows-software-updates-installation/ 

Thank you

Tony
0
Comment
Question by:tonyjoewalker
  • 2
4 Comments
 

Expert Comment

by:FNDAdmin
ID: 40370682
0
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 40370772
i had a thought, but after looking at the link you posted, noticed it was the same thing - doing dir /b redirected to a file then appending those 2 options at the end

WSUS is a good centrally-managed tool but depends on your environment
if you only have a couple servers it probably isn't worth the time to setup and maintain
0
 

Author Comment

by:tonyjoewalker
ID: 40371452
Thanks.  We are using WSUS in our environment, but due to dev/qa/prod patch cycles I need to deploy a few patches manually to just a handful of servers and changing policy and containers these servers are in just wouldn't be worth the work
0
 

Author Comment

by:tonyjoewalker
ID: 40376776
@Seth - thank you.  The script works and I have a different question.  I do a lot with vbscript and not much with .bat, so I'm wondering if you could give me a brief walk through what parts of that .bat actually tells it to run on the .msu's in the directory?
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now