色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

用jscript實現(xiàn)列出安裝的軟件列表

Returns a list of software that was installed on a computer 
using Windows Installer. This information is then
 written to a text file. 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_Product" -namespace "root/CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
      write-host "Caption: " $objItem.Caption
      write-host "Description: " $objItem.Description
      write-host "Identifying Number: " $objItem.IdentifyingNumber
      write-host "Installation Date: " $objItem.InstallDate
      write-host "Installation Date 2: " $objItem.InstallDate2
      write-host "Installation Location: " $objItem.InstallLocation
      write-host "Installation State: " $objItem.InstallState
      write-host "Name: " $objItem.Name
      write-host "Package Cache: " $objItem.PackageCache
      write-host "SKU Number: " $objItem.SKUNumber
      write-host "Vendor: " $objItem.Vendor
      write-host "Version: " $objItem.Version
      write-host
}



JavaScript技術(shù)用jscript實現(xiàn)列出安裝的軟件列表,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 阿图什市| 铜陵市| 六盘水市| 英吉沙县| 遂平县| 镶黄旗| 云林县| 察哈| 大英县| 高陵县| 波密县| 泾川县| 德州市| 沁阳市| 铜川市| 嘉兴市| 改则县| 华阴市| 乐亭县| 齐齐哈尔市| 板桥市| 二连浩特市| 双柏县| 灵武市| 胶州市| 平舆县| 绥芬河市| 平舆县| 当涂县| 邢台市| 五指山市| 堆龙德庆县| 墨玉县| 翁牛特旗| 元阳县| 罗城| 阳高县| 南康市| 古浪县| 高清| 龙海市|