Solved

Need .bat to install all windows patches in a folder

Posted on 2014-10-09
4
125 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

746 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

14 Experts available now in Live!

Get 1:1 Help Now