Returnsthenameandproductcodeofbinaryinformation
(suchasbitmaps,icons,executablefiles,andsoon)used
byaWindowsInstallerapplication.Thisscriptrequiresboth
WindowsPowerShellandthecorrespondingversionof
the.NETFramework.Formoreinformationondownloading
theseitemsseetheWindowsPowerShelldownloadpage(right).
复制代码 代码如下:
$strComputer="."
$colItems=get-wmiobject-class"Win32_Binary"-namespace"rootCIMV2"`
-computername$strComputer
foreach($objItemin$colItems){
write-host"Caption:"$objItem.Caption
write-host"Data:"$objItem.Data
write-host"Description:"$objItem.Description
write-host"Name:"$objItem.Name
write-host"ProductCode:"$objItem.ProductCode
write-host"SettingID:"$objItem.SettingID
write-host
}
【List Information About the Binary Files Used by an Application】相关文章:
★ JavaScript实现跑马灯抽奖活动实例代码解析与优化(二)
★ JavaScript中Math.SQRT2属性的使用详解
★ 简介JavaScript中toUpperCase()方法的使用
★ jQuery Timelinr实现垂直水平时间轴插件(附源码下载)