色尼玛亚洲综合影院,亚洲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實現列出安裝的軟件列表,轉載需保留來源!

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

主站蜘蛛池模板: 瑞金市| 兴安盟| 永济市| 中西区| 乳源| 梨树县| 武陟县| 巧家县| 尉氏县| 万全县| 玉门市| 博兴县| 松江区| 高平市| 封丘县| 洛浦县| 阿拉善右旗| 洛扎县| 永川市| 吉隆县| 视频| 永德县| 松江区| 东山县| 雷州市| 甘谷县| 霍林郭勒市| 柘城县| 建始县| 蒲江县| 松滋市| 黑山县| 沾益县| 汝南县| 无极县| 蓬溪县| 元阳县| 噶尔县| 青龙| 澎湖县| 平谷区|