批处理WMIC查看补丁情况

最近补丁比较多,需要看系统打了些啥,哪些没打的BAT:

wmic qfe GET hotfixid > a.txt&(for %i in (KB3076321 KB3072604 KB3073094 KB3072000 KB3065718 KB3072631 KB3072620 KB3068457 KB3069392 KB3070102 KB3072630 KB3072633 KB3067505 KB3077657) do @type a.txt|@find /i "%i"||@echo %i Not Installed!)&del /f /q /a a.txt

  批处理WMIC查看补丁情况

ms15-065

KB3076321



MS15-066

KB3072604



MS15-067

KB3073094



MS15-068

KB3072000



MS15-058

KB3065718



MS15-069

KB3072631



MS15-070

KB3072620



MS15-071

KB3068457



MS15-072

KB3069392



MS15-073

KB3070102



MS15-074

KB3072630



MS15-075

KB3072633



MS15-076

KB3067505



MS15-077

KB3077657



参考:

http://www.shuixiangu.com/article-2330796-1.html

http://bbs.aliyun.com/read/250891.html?page=e

  

 

你可能感兴趣的:(批处理)