简介 http://technet.microsoft.com/zh-cn/library/ee692772.aspx#E5IAC
主页 http://msdn.microsoft.com/zh-cn/library/aa394582.aspx
技巧:
1、wscript.echo 不显示对话框,可以在脚本前加cscript命令。格式如: cscript ***.vbs
2、 WMI Code Creator很有用的工具,可以枚举wmi名称空间,所有类,生成代码。
3、环境测试命令wbemtest.exe
命令行下命令wmic
1、获取所有补丁示例
wmic qfe list full /format:htable > hotfixes.htm
2、fix file 1 problem
The "File 1" entries just indicate that that particular hotfix has been superceded by a newer hotfix.
You could just add an If/Then/Else statement to trap it. For example,
If objQuickFix.HotFixID="File 1" Then objExcel.Cells(row, 3).Value="Hotfix has been superceded" Else objExcel.Cells(row, 3).Value=objQuickFix.HotFixID End If