List the Codec Files on a Computer


Posted in Javascript onJune 18, 2007

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 
}
Javascript 相关文章推荐
List the Codec Files on a Computer
Jun 11 Javascript
Javascript 获取滚动条位置等信息的函数
Sep 08 Javascript
文字不间断滚动(上下左右)实例代码
Apr 21 Javascript
js 页面元素的几个用法总结
Nov 18 Javascript
javascript中的作用域和闭包详解
Jan 13 Javascript
jQuery基于扩展简单实现倒计时功能的方法
May 14 Javascript
jquery.form.js框架实现文件上传功能案例解析(springmvc)
May 26 Javascript
浅述Javascript的外部对象
Dec 07 Javascript
用angular实现多选按钮的全选与反选实例代码
May 23 Javascript
jQuery日期范围选择器附源码下载
May 23 jQuery
axios+Vue实现上传文件显示进度功能
Apr 14 Javascript
vue 通过绑定事件获取当前行的id操作
Jul 27 Javascript
Save a File Using a File Save Dialog Box
Jun 18 #Javascript
Locate a File Using a File Open Dialog Box
Jun 18 #Javascript
firefox中用javascript实现鼠标位置的定位
Jun 17 #Javascript
Sample script that displays all of the users in a given SQL Server DB
Jun 16 #Javascript
Sample script that deletes a SQL Server database
Jun 16 #Javascript
use jscript Create a SQL Server database
Jun 16 #Javascript
Convert Seconds To Hours
Jun 16 #Javascript
You might like
PHP 采集程序中常用的函数
2009/12/09 PHP
基于php使用memcache存储session的详解
2013/06/25 PHP
CI框架数据库查询之join用法分析
2016/05/18 PHP
JavaScript 输入框内容格式验证代码
2010/02/11 Javascript
js中巧用cssText属性批量操作样式
2011/03/13 Javascript
js获取RadioButtonList的Value/Text及选中值等信息实现代码
2013/03/05 Javascript
Jquery操作js数组及对象示例代码
2014/05/11 Javascript
jQuery+json实现的简易Ajax调用实例
2015/12/14 Javascript
javascript时间戳和日期字符串相互转换代码(超简单)
2016/06/22 Javascript
省市区三级联动jquery实现代码
2020/04/15 Javascript
详解能在多种前端框架下使用的表格控件
2017/01/11 Javascript
js指定步长实现单方向匀速运动
2017/07/17 Javascript
vue循环数组改变点击文字的颜色
2019/10/14 Javascript
vue路由结构可设一层方便动态添加路由操作
2020/08/31 Javascript
vue-calendar-component 封装多日期选择组件的实例代码
2020/12/04 Vue.js
[01:26]神话结束了,却也刚刚开始——DOTA2新英雄玛尔斯驾临战场
2019/03/10 DOTA
[11:44]Ti9 OG夺冠时刻
2019/08/25 DOTA
复习Python中的字符串知识点
2015/04/14 Python
Python 实现淘宝秒杀的示例代码
2018/01/02 Python
django+tornado实现实时查看远程日志的方法
2019/08/12 Python
Django中间件拦截未登录url实例详解
2019/09/03 Python
python关于调用函数外的变量实例
2019/12/26 Python
蒂娜商店:Tiina the Store
2019/12/07 全球购物
数据库专业英语
2012/11/30 面试题
中学生校园广播稿
2014/01/16 职场文书
见习期自我鉴定
2014/01/31 职场文书
贸易跟单员英文求职信
2014/04/19 职场文书
产品推广策划方案
2014/05/10 职场文书
质量提升方案
2014/06/16 职场文书
2014年度个人总结范文
2015/03/09 职场文书
订货会主持词
2015/07/01 职场文书
python如何在word中存储本地图片
2021/04/07 Python
python3 hdf5文件 遍历代码
2021/05/19 Python
HTML基础详解(下)
2021/10/16 HTML / CSS
全面盘点MySQL中的那些重要日志文件
2021/11/27 MySQL
JavaScript实现栈结构详细过程
2021/12/06 Javascript