国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

用jscript實現列出安裝的軟件列表

2019-11-21 02:02:20
字體:
來源:轉載
供稿:網友
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). 
復制代碼 代碼如下:

$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
}



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 阿克| 桦南县| 新竹县| 疏附县| 鹤峰县| 新平| 宾阳县| 柘城县| 涿州市| 武胜县| 梅州市| 临汾市| 泰来县| 东方市| 苏尼特左旗| 土默特左旗| 利津县| 林口县| 城市| 商丘市| 达拉特旗| 鄯善县| 乐亭县| 花垣县| 遵化市| 奈曼旗| 济南市| 龙里县| 大兴区| 普宁市| 虹口区| 安平县| 民丰县| 治县。| 门头沟区| 盐源县| 科技| 祁阳县| 明水县| 介休市| 丽水市|