List Information About the Binary Files Used by an Application_Javascript教程-查字典教程网
List Information About the Binary Files Used by an Application
List Information About the Binary Files Used by an Application
发布时间:2016-12-30 来源:查字典编辑
摘要:Returnsthenameandproductcodeofbinaryinformation(suchasbitmaps,icons,ex...

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

}

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新Javascript教程学习
    热门Javascript教程学习
    编程开发子分类