List Information About the Binary Files Used by an Application
更新時間: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).
復制代碼 代碼如下:
$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
}
相關文章
JS+CSS制作DIV層可(最小化/拖拽/排序)功能實現(xiàn)代碼
DIV層最小化和隨意拖拽排序,很多的愛好者都想實現(xiàn)這個功能,小編整理搜集了一下,希望本文的知識點可以幫助到你2013-02-02
javascript獲取四位數(shù)字或者字母的隨機數(shù)
這篇文章主要介紹了javascript獲取四位數(shù)字或者字母的隨機數(shù),需要的朋友可以參考下2015-01-01

