用jscript实现列出安装的软件列表
2023-06-13 09:13:56 时间
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).
复制代码代码如下:
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
}
相关文章
- Photoshop2023 24.0.0.59 中文安装版下载PS2023安装教程
- 项目chrome安装react devtools
- 群辉安装Transmission套件、增强汉化WebUI并备份做种列表
- 图片后期处理软件下载lightroom 2023最新安装步骤Lr软件下载:Lightroom Classic下载LRC下载安装LR最新版下载安装
- Linux软件安装简单指南(linux软件安装列表)
- 系统安装使用Linux系统安装ecshop(ecshoplinux)
- Linux下 Qt 安装指南(linux下qt的安装)
- 新手快速上手:Linux 7.1安装指南(linux7.1安装教程)
- Linux上安装安卓应用:快速便捷的操作(linux安卓app)
- 在 Windows 上安装 GNU Emacs
- Mysql服务简单步骤安装指南(mysql 服务安装)
- 如何安装MySQL下载版(mysql下载了怎么安装)
- Windows2003下安装WinWebMail3.6.3.1完全攻略手册