List the Codec Files on a computer_javascript tips

Source: Internet
Author: User
Tags readable
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
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.