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

首頁 > 開發 > JS > 正文

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

2024-09-06 12:42:07
字體:
來源:轉載
供稿:網友
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
}



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 呼和浩特市| 上林县| 茌平县| 河北省| 齐河县| 嘉善县| 朝阳县| 楚雄市| 西乌珠穆沁旗| 武冈市| 宝应县| 泸水县| 磐石市| 神农架林区| 鸡东县| 潼南县| 大石桥市| 双鸭山市| 仙桃市| 保靖县| 建始县| 锡林浩特市| 郯城县| 古田县| 航空| 安岳县| 辽宁省| 龙海市| 雅安市| 岳普湖县| 封丘县| 荥经县| 红原县| 凤凰县| 宝丰县| 无极县| 武城县| 平昌县| 关岭| 商城县| 广西|