Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Microsoft Security Patches

Posted on 2014-01-21
3
662 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

808 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