List Information About the Binary Files Used by an Application
更新時(shí)間:2007年06月18日 00:00:00 作者:
Returns the name and product code of binary information
(such as bitmaps, icons, executable files, and so on) used
by a Windows Installer application. 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_Binary" -namespace "root\CIMV2" `
-computername $strComputer
foreach ($objItem in $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
}
(such as bitmaps, icons, executable files, and so on) used
by a Windows Installer application. 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_Binary" -namespace "root\CIMV2" `
-computername $strComputer
foreach ($objItem in $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
}
相關(guān)文章
Angularjs手動(dòng)解析表達(dá)式($parse)
這篇文章主要介紹了Angularjs手動(dòng)解析表達(dá)式($parse)的相關(guān)資料,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下2016-10-10JS深入學(xué)習(xí)之?dāng)?shù)組對象排序操作示例
這篇文章主要介紹了JS深入學(xué)習(xí)之?dāng)?shù)組對象排序操作,結(jié)合實(shí)例形式詳細(xì)分析了JavaScript數(shù)組對象排序相關(guān)實(shí)現(xiàn)技巧與操作注意事項(xiàng),需要的朋友可以參考下2020-05-05關(guān)于JavaScript中異步/等待的用法與理解
這篇文章主要給大家介紹了關(guān)于JavaScript中異步/等待的用法與理解,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-11-11javascript實(shí)現(xiàn)好看的可復(fù)用彈窗插件
這篇文章主要為大家詳細(xì)介紹了javascript實(shí)現(xiàn)好看的可復(fù)用彈窗插件,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2022-05-05JavaScript.The.Good.Parts閱讀筆記(二)作用域&閉包&減緩全局空間污染
塊級作用域: 大多數(shù)使用c語言語法的語言都有塊級作用域,而JavaScript沒有塊級作用域。2010-11-11