Win32_CodecFile vbscript sample code
The foundations for Manageability in Windows is Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself. The Win32_CodecFile WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Description
The Win32_CodecFile WMI class represents the audio or video codec installed on the computer system. Codecs convert one media format type to another, typically a compressed format to an uncompressed format. The name codec is derived from a combination of compress and decompress. For example, a codec can convert a compressed format such as MS-ADPCM to an uncompressed format such as PCM, which most audio hardware can play directly.
Sample Code
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_CodecFile",,48) For Each objItem in colItems Wscript.Echo "AccessMask: " & objItem.AccessMask Wscript.Echo "Archive: " & objItem.Archive Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "Compressed: " & objItem.Compressed Wscript.Echo "CompressionMethod: " & objItem.CompressionMethod Wscript.Echo "CreationClassName: " & objItem.CreationClassName Wscript.Echo "CreationDate: " & objItem.CreationDate Wscript.Echo "CSCreationClassName: " & objItem.CSCreationClassName Wscript.Echo "CSName: " & objItem.CSName Wscript.Echo "Description: " & objItem.Description Wscript.Echo "Drive: " & objItem.Drive Wscript.Echo "EightDotThreeFileName: " & objItem.EightDotThreeFileName Wscript.Echo "Encrypted: " & objItem.Encrypted Wscript.Echo "EncryptionMethod: " & objItem.EncryptionMethod Wscript.Echo "Extension: " & objItem.Extension Wscript.Echo "FileName: " & objItem.FileName Wscript.Echo "FileSize: " & objItem.FileSize Wscript.Echo "FileType: " & objItem.FileType Wscript.Echo "FSCreationClassName: " & objItem.FSCreationClassName Wscript.Echo "FSName: " & objItem.FSName Wscript.Echo "Group: " & objItem.Group Wscript.Echo "Hidden: " & objItem.Hidden Wscript.Echo "InstallDate: " & objItem.InstallDate Wscript.Echo "InUseCount: " & objItem.InUseCount Wscript.Echo "LastAccessed: " & objItem.LastAccessed Wscript.Echo "LastModified: " & 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 Next