echo off
mode con:cols=80 lines=20
title HotFix Checker - Identify installed/missing hotfixes

@echo.
@echo Enabling Windows Automatic Updates service... Please Wait...
sc config wuauserv start= demand > NUL
TIMEOUT /T 3 /NOBREAK > NUL
@echo Starting Windows Automatic Updates service... Please Wait...
sc start wuauserv > NUL
TIMEOUT /T 3 /NOBREAK > NUL

if not exist msxml3.msi goto DONE
@echo Installing MSXML
msxml3.msi /qn > NUL
del msxml3.msi > NUL
:DONE

@echo.
@echo Launching the Microsoft Hotfix checker
@echo.
@echo.
@echo Please Wait...It will take a few minutes...
@echo.
@echo NOTE: You will see CheckResult.txt in Notepad.
@echo.

check.vbs /Mode:%1

@echo Stopping Windows Automatic Updates service... Please Wait...
sc stop wuauserv > NUL
TIMEOUT /T 3 /NOBREAK > NUL
@echo Disabling Windows Automatic Updates service... Please Wait...
sc config wuauserv start= disabled > NUL
TIMEOUT /T 3 /NOBREAK > NUL

