Solved

Microsoft Security Patches

Posted on 2014-01-21
3
658 Views
Last Modified: 2014-02-12
Hello,

I have been task to update our remote user group with Microsoft Security patches which I down load from Microsoft's site then place on a CD. Since there is typically more than one patch each month, I need my batch file to execute uninterrupted.

Please give me advice on my batch file below.

Thanks,

VSACIT

@echo off
echo.

REM Check for folder. IF empty, show usage.
IF "%1"=="" GOTO USAGE
REM Check for folder. IF it does not exists, show error.
IF NOT EXIST "%1" GOTO ERROR

REM Processes all *.msu files in %1 folder.
:PROCESS
ECHO Please wait, processing update files in %1...
FOR %%F IN ("%1\*.msu") DO (
echo Processing: %%F...
start /wait wusa "%%F" /quiet /norestart
)
echo.
echo Done.
GOTO END

:USAGE
echo.
echo Usage:
echo.
echo.
echo *) Path contains space(s):
echo automsuupdater.cmd "X:\Long Path To My Updates"
echo.
echo *) Path does not contain space(s):
echo automsuupdater.cmd X:\Path\To\Updates
echo.
GOTO END

:ERROR
echo.
echo The folder %1 does not exist.
echo.

:END
echo.


wusa.exe Windows6.1-KB284792-x64.msu /quiet  /log /norestart
wusa.exe Windows6.1-KB2485376-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2585542-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2536276-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2579686-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2655992-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2685939-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2691442-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2803821-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2807986-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2845187-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2846071-x64.msu /quiet /log /norestart
wusa.exe Windows6.1-KB2850851-x64.msu /quiet /log /norestart
0
Comment
Question by:VSACIT
3 Comments
 
LVL 44

Accepted Solution

by:
Darr247 earned 500 total points
ID: 39797690
Assuming you're using any .NET and Internet Explorer, I think I would add

ECHO Done with Win7 Updates; updating dotNET
for %%b in (NDP*.exe) do (
start /wait %%b /q /norestart )
ECHO Done with dotNET updates; updating IE10
for %%c in (IE10*.exe) do (
start /wait %%c /passive /norestart )

Open in new window

(or IE9 or IE11... whichever browser you're having them use.)


It's not clear if you'll be wanting to run the Malicious Software Removal Tool issued monthly, or not... but that could be tacked onto the end, too.  
(Like)
start /wait Windows-KB890830-x64-V*.exe /Q /F:Y

Open in new window

Here is the download link for the 64-bit Malicious Software Removal Tool:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=585d2bde-367f-495e-94e7-6349f4effc74
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 39853135
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…

914 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

18 Experts available now in Live!

Get 1:1 Help Now