Description
Uses WMI to return information about all the audio and video codec files installed on a computer.
Script Code
Copy Code code as follows:
var wbemflagreturnimmediately = 0x10;
var wbemflagforwardonly = 0x20;
var objWMIService = GetObject ("winmgmts:\\\\.\\root\\cimv2");
var colitems = objWMIService.ExecQuery ("SELECT * from Win32_codecfile", "WQL",
wbemflagreturnimmediately | wbemFlagForwardOnly);
var enumitems = new Enumerator (colitems);
for (;!enumitems.atend (); Enumitems.movenext ()) {
var objitem = Enumitems.item ();
WScript.Echo ("Access Mask:" + objitem.accessmask);
WScript.Echo ("Archive:" + objitem.archive);
WScript.Echo ("Caption:" + objitem.caption);
WScript.Echo ("Compressed:" + objitem.compressed);
WScript.Echo ("Compression Method:" + Objitem.compressionmethod);
WScript.Echo ("Creation Class Name:" + objitem.creationclassname);
WScript.Echo ("Creation Date:" + objitem.creationdate);
WScript.Echo ("CS creation Class Name:" + objitem.cscreationclassname);
WScript.Echo ("CS Name:" + objitem.csname);
WScript.Echo ("Description:" + objitem.description);
WScript.Echo ("Drive:" + objitem.drive);
WScript.Echo ("Eight Dot Three File Name:" + objitem.eightdotthreefilename);
WScript.Echo ("Encrypted:" + objitem.encrypted);
WScript.Echo ("Encryption Method:" + Objitem.encryptionmethod);
WScript.Echo ("Extension:" + objitem.extension);
WScript.Echo ("File Name:" + objitem.filename);
WScript.Echo ("File Size:" + objitem.filesize);
WScript.Echo ("File Type:" + objitem.filetype);
WScript.Echo ("FS creation Class Name:" + objitem.fscreationclassname);
WScript.Echo ("FS Name:" + objitem.fsname);
WScript.Echo ("Group:" + objitem.group);
WScript.Echo ("Hidden:" + Objitem.hidden);
WScript.Echo ("Install Date:" + objitem.installdate);
WScript.Echo ("In Use Count:" + objitem.inusecount);
WScript.Echo ("Last Accessed:" + objitem.lastaccessed);
WScript.Echo ("Last Modified:" + objitem.lastmodified);
WScript.Echo ("Manufacturer:" + objitem.manufacturer);
WScript.Echo ("Name:" + objitem.name);
WScript.Echo ("Path:" + Objitem.path);
WScript.Echo ("Readable:" + objitem.readable);
WScript.Echo ("Status:" + objitem.status);
WScript.Echo ("System:" + Objitem.system);
WScript.Echo ("Version:" + objitem.version);
WScript.Echo ("Writeable:" + objitem.writeable);
WScript.Echo ();
}