China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-10 16:00
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Closed] Viewing system patches with batch processing View 1,840 Replies 8
Original Poster Posted 2007-01-30 06:50 ·  中国 广东 深圳 电信
初级用户
Credits 94
Posts 35
Joined 2007-01-09 02:10
19-year member
UID 75886
Gender Male
Status Offline
How to use batch processing to view what patches the Windows system has installed? Can this batch processing do it? Please expert give "tips"!!!!

[ Last edited by HAT on 2008-11-19 at 10:22 ]
Floor 2 Posted 2007-01-30 07:10 ·  中国 北京 东城区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
The reference code you need to find regarding checking which patches have been applied in the Windows system is in the following post~:)

See the second code segment in the first post of the following thread (I have tested it for you), and I hope you use the forum search function when encountering problems (I also used the forum search function to enter the keyword "patch" to find the following thread for you), this can solve the problem more conveniently and quickly~:)




Batch processing for batch updating system update patches


http://www.cn-dos.net/forum/viewthread.php?tid=26057&fpage=1&highlight=%E8%A1%A5%E4%B8%81

[ Last edited by redtek on 2007-1-29 at 06:15 PM ]
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 3 Posted 2007-01-30 07:21 ·  中国 广东 深圳 福田区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
@echo off
set reg="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3"
for /f "tokens=*" %%i in ('reg query %reg%') do echo %%~ni
pause
第一高手 第二高手

Floor 4 Posted 2007-01-30 07:29 ·  中国 广东 深圳 福田区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Hehe, Brother redtek has already replied~
第一高手 第二高手

Floor 5 Posted 2007-01-30 09:16 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
WMIC works, call lxmxn to come and have a look

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 6 Posted 2007-01-30 10:09 ·  中国 广东 深圳 电信
初级用户
Credits 94
Posts 35
Joined 2007-01-09 02:10
19-year member
UID 75886
Gender Male
Status Offline
Thank you everyone
To: exlctronixtar
How to view with WIMIC?
Floor 7 Posted 2007-01-30 10:49 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
I don't remember very clearly, but I searched it out, hehe

systeminfo |findstr /c:"KB“

wmic qfe

This post has been added to the wiki

http://www.cn-dos.net/mediawiki/index.php?title=Check%20which%20hotfixes%20(Hotfix)%20Windows%20has%20installed&action=edit

[ Last edited by electronixtar on 2007-1-30 at 10:52 AM ]

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 8 Posted 2007-02-08 22:50 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
Originally posted by fastslz at 2007-1-30 07:21:
@echo off
set reg="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3"
for /f "tokens=*" %%i in ('reg query %reg%') do echo %%~ni
pause


Another key value learned
Top
Floor 9 Posted 2008-11-19 10:19 ·  中国 浙江 嘉兴 海宁市 电信
中级用户
★★
Credits 360
Posts 216
Joined 2007-05-29 17:41
19-year member
UID 89677
Gender Male
Status Offline
wmic qfe

Question 1:
After execution, there are such patches:
Microsoft .NET Framework 1.1 Hotfix (KB928366)

Windows XP Service Pack 3

Are these two patches applied in the same way as other patches such as (KB958644)?

I don't know much about patches yet, and after checking the materials, I still can't figure it out.

Question 2:
Is the patches obtained by WMIC very complete?

Question 3:

This is the Malicious Software Removal Tool windows-kb890830-v2.4.exe
It should also be a patch. Why does it run again when I apply it the second time?

[ Last edited by bd123456789 on 2008-11-19 at 10:33 ]
Forum Jump: