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

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

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
}



JavaScript技術用jscript實現列出安裝的軟件列表,轉載需保留來源!

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

主站蜘蛛池模板: 清原| 河间市| 青浦区| 南丹县| 左权县| 兰西县| 锡林浩特市| 泾源县| 文登市| 溧阳市| 丽水市| 桑植县| 邳州市| 普定县| 特克斯县| 科技| 新源县| 两当县| 贡山| 渭南市| 长治市| 体育| 章丘市| 轮台县| 子洲县| 泽州县| 静宁县| 鄄城县| 西宁市| 黄龙县| 贞丰县| 新河县| 乌鲁木齐县| 沧州市| 甘泉县| 新竹县| 平山县| 高安市| 高台县| 安多县| 望谟县|