Uses WMI to return information about all the audio and video codec files
Installed on a computer. This script requires both Windows PowerShell
and the corresponding version of the. NET Framework. For more information
On downloading these items are the Windows PowerShell download page (right).
Copy Code code as follows:
$strComputer = "."
$colItems = Get-wmiobject-class "Win32_codecfile"-namespace "root\cimv2"
-computername $strComputer
foreach ($objItem in $colItems) {
Write-host "AccessMask:" $objItem. AccessMask
Write-host "Archive:" $objItem. Archive
Write-host "Caption:" $objItem. Caption
Write-host "Compressed:" $objItem. Compressed
Write-host "Compression method:" $objItem. Compressionmethod
Write-host "Creation Class Name:" $objItem. CreationClassName
Write-host "Creation Date:" $objItem. CreationDate
Write-host "CS creation Class Name:" $objItem. Cscreationclassname
Write-host "CS Name:" $objItem. CSName
Write-host "Description:" $objItem. Description
Write-host "Drive:" $objItem. Drive
Write-host "8.3 File Name:" $objItem. EightDotThreeFileName
Write-host "Encrypted:" $objItem. Encrypted
Write-host "Encryption method:" $objItem. EncryptionMethod
Write-host "Extension:" $objItem. Extension
Write-host "File Name:" $objItem. FileName
Write-host "File Size:" $objItem. FileSize
Write-host "File Type:" $objItem. FileType
Write-host "FS creation Class Name:" $objItem. Fscreationclassname
Write-host "FS Name:" $objItem. FSName
Write-host "group:" $objItem. Group
Write-host "Hidden:" $objItem. Hidden
Write-host "Installation Date:" $objItem. InstallDate
Write-host "In use Count:" $objItem. Inusecount
Write-host "Last accessed:" $objItem. lastaccessed
Write-host "Last Modified:" $objItem. lastmodified
Write-host "Manufacturer:" $objItem. Manufacturer
Write-host "Name:" $objItem. Name
Write-host "path:" $objItem. Path
Write-host "readable:" $objItem. Readable
Write-host "Status:" $objItem. Status
Write-host "System:" $objItem. System
Write-host "version:" $objItem. Version
Write-host "writeable:" $objItem. Writeable
Write-host
}