컴퓨터에 설치된 모든 핫픽스 목록을 반환합니다.
스크립트 코드
var wbemFlagReturnImmediately = 0x10 ;
var wbemFlagForwardOnly = 0x20;
var objWMIService = GetObject("winmgmts:\\.\root\CIMV2");
var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_QuickFixEngineering", "WQL",
wbemFlagReturn즉시 | wbem 플래그앞으로만);
var enumItems = new Enumerator(colItems);
for (; !enumItems.atEnd(); enumItems.moveNext()) {
var objItem = enumItems.item();
WScript.Echo("캡션: " objItem.Caption);
WScript.Echo("CS 이름: " objItem.CSName);
WScript.Echo("설명: " objItem.Description);
WScript.Echo("댓글 수정: " objItem.FixComments);
WScript.Echo("Hot Fix ID: " objItem.HotFixID);
WScript.Echo("설치 날짜: " objItem.InstallDate);
WScript.Echo("설치자: " objItem.InstalledBy);
WScript.Echo("설치 위치: " objItem.InstalledOn);
WScript.Echo("이름: " objItem.Name);
WScript.Echo("서비스 팩 효과:" objItem.ServicePackInEffect);
WScript.Echo("상태: " objItem.Status);
WScript.Echo();
}