国产探花免费观看_亚洲丰满少妇自慰呻吟_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
}



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 庐江县| 海口市| 延寿县| 莒南县| 通道| 南靖县| 永春县| 吴川市| 龙陵县| 阿拉尔市| 湘潭县| 丰镇市| 卓资县| 施秉县| 河源市| 九台市| 门源| 浦城县| 云安县| 丘北县| 墨江| 花莲县| 鄂托克旗| 阜阳市| 利津县| 仁布县| 临桂县| 东阿县| 喜德县| 陇川县| 阳江市| 桐城市| 稻城县| 卫辉市| 柏乡县| 湘阴县| 泉州市| 苏尼特右旗| 胶南市| 樟树市| 五指山市|