List the Codec Files on a Computer
更新時(shí)間:2007年06月18日 00:00:00 作者:
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 see the Windows PowerShell download page (right).
$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
}
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 see the Windows PowerShell download page (right).
復(fù)制代碼 代碼如下:
$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
}
相關(guān)文章
信息頁文內(nèi)畫中畫廣告js實(shí)現(xiàn)代碼(文中加載廣告方式)
一般來說文章內(nèi)容中的廣告點(diǎn)擊率更好,也更容易被訪客看到,如果直接將廣告放到頁面頭部會影響網(wǎng)站的速度,所以一般都比較喜歡這種方法,這里分享下實(shí)現(xiàn)方法2016-01-01
JavaScript事件學(xué)習(xí)小結(jié)(五)js中事件類型之鼠標(biāo)事件
這篇文章主要介紹了JavaScript事件學(xué)習(xí)小結(jié)(五)js中事件類型之鼠標(biāo)事件的相關(guān)資料,非常不錯具有參考借鑒價(jià)值,需要的朋友可以參考下2016-06-06
使用reflect-metadata實(shí)現(xiàn)數(shù)據(jù)校驗(yàn)與日志記錄
在?TypeScript?生態(tài)系統(tǒng)中,reflect-metadata?庫是一種強(qiáng)大的工具,它允許我們在運(yùn)行時(shí)獲取更多的類型信息,下面我們來看看如何在前端項(xiàng)目中使用reflect-metadata以及它能實(shí)現(xiàn)的能力吧2024-12-12
JavaScript實(shí)現(xiàn)大文件分片上傳處理
這篇文章主要為大家詳細(xì)介紹了JavaScript實(shí)現(xiàn)大文件分片上傳處理,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2021-08-08
next.js之getStaticProps?getStaticPaths使用技巧解析
這篇文章主要為大家介紹了next.js之getStaticProps?getStaticPaths使用技巧解析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-06-06

