설명
Windows Installer를 사용하여 컴퓨터에 설치된 모든 소프트웨어의 기능 목록을 반환합니다. 스크립트 코드
var wbemFlagReturnImmediately = 0x10;
var wbemFlagForwardOnly = 0x20;
var objWMIService = GetObject("winmgmts:\\.\root\CIMV2");
var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_SoftwareFeature", "WQL",
wbemFlagReturn즉시 | wbemFlagForward 만);
var enumItems = new Enumerator(colItems);
for (; !enumItems.atEnd(); enumItems.moveNext()) {
var objItem = enumItems.item();
WScript.Echo("액세스: " objItem.Accesses);
WScript.Echo("속성: " objItem.Attributes);
WScript.Echo("캡션: " objItem.Caption);
WScript.Echo("설명: " objItem.Description);
WScript.Echo("식별 번호: " objItem.IdentifyingNumber);
WScript.Echo("설치 날짜: " objItem.InstallDate);
WScript.Echo("설치 상태: " objItem.InstallState);
WScript.Echo("마지막 사용: " objItem.LastUse);
WScript.Echo("이름: " objItem.Name);
WScript.Echo("제품 이름: " objItem.ProductName);
WScript.Echo("상태: " objItem.Status);
WScript.Echo("공급업체: " objItem.Vendor);
WScript.Echo("버전: " objItem.Version);
WScript.Echo();
}