欢迎来到福编程网,本站提供各种互联网专业知识!

List Information About the Binary Files Used by an Application

发布时间:2007-06-18 作者: 来源:转载
Returnsthenameandproductcodeofbinaryinformation(suchasbitmaps,icons,executablefiles,andsoon)usedbyaWindowsInstallerapplication.ThisscriptrequiresbothWindowsPowerShellandthecorrespondingversionofthe.NETFramework.Formoreinformatio
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
}


相关推荐