script for quering windows patch

Red hat Red hat linux 7.1
March 1, 2011 at 03:23:46
Specs: windows vista, 256
Thanks for allowing to join this forum

I knew a wmic script for finding installed patches in windows for example wmic qfe----

I just want to make a script which will ask user to input any KB number for example KB958664 ...... and the output will show whether the patch is installed or not,,,,,,,, with installation date...

I tried through some vbs script available from google,,,,, but it is not asking for users input.......

any ideas in this regard is greatly appreciated.............


See More: script for quering windows patch

Report •

#1
March 3, 2011 at 01:54:51
***UNTESTED***

::BAT.bat
@echo off
echo.
set /p INPUT= Enter the KB number to search:
for /f "tokens=*" %%j in ('wmic qfe get description ^| find "%INPUT%"') do echo %%j
echo.
pause
exit

Regards,

Happy is ONE who says I am an OttoMAN.


Report •
Related Solutions


Ask Question