获取远程计算机已安装软件的列表

时间:2016-01-15 14:42:26

标签: windows powershell remote-debugging installed-applications

是否可以获取远程计算机的已安装软件列表? 我知道要使用Powershell为本地计算机执行此操作。 Powershell是否可以安装远程计算机的软件并将此列表保存在远程计算机上? 我用于本地计算机: Get-WmiObject -Class Win32_Product |选择对象 - 属性名称

提前致谢, 最好的问候,

2 个答案:

答案 0 :(得分:1)

这使用Microsoft.Win32.RegistryKey检查远程计算机上的SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall注册表项。

https://github.com/gangstanthony/PowerShell/blob/master/Get-InstalledApps.ps1

答案 1 :(得分:1)

如何在远程计算机上获取已安装软件的列表有多种方法:

  1. 在ROOT \ CIMV2名称空间上运行WMI查询:

    • 启动WMI Explorer或任何其他可以运行WMI查询的工具。
    • 运行WMI查询" SELECT * FROM Win32_Product"
  2. 使用wmic命令行界面:

    • 按WIN + R
    • 键入" wmic",按Enter键
    • 在wmic命令提示符下键入" / node:RemoteComputerName product"
  3. 使用Powershell脚本:

    • 通过WMI对象:Get-WmiObject -Class Win32_Product -Computer RemoteComputerName
    • 通过注册表:Get-ItemProperty HKLM:\ Software \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Uninstall * | Select-Object DisplayName,DisplayVersion,Publisher,InstallDate |格式表-AutoSize
    • 通过Get-RemoteProgram cmdlet:Get-RemoteProgram -ComputerName RemoteComputerName
  4. 来源:https://www.action1.com/kb/list_of_installed_software_on_remote_computer.html