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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34813529/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:25:32  来源:igfitidea点击:

Get list of installed software of remote computer

windowspowershellremote-debugginginstalled-applications

提问by Joep

Is it possible to get a list of installed software of a remote computer ? I know to do this for a local computer with use of Powershell. Is it possible with Powershell to get installed software of a remote computer and save this list on the remote computer ? This I use for local computers: Get-WmiObject -Class Win32_Product | Select-Object -Property Name

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

Thanks in advance, Best regards,

提前致谢, 最好的问候,

回答by Anthony Stringer

This uses Microsoft.Win32.RegistryKey to check the SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall registry key on remote computers.

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

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

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

回答by Peter Barnett

There are multiple ways how to get the list of installed software on a remote computer:

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

  1. Running WMI query on ROOT\CIMV2 namespace:

    • Start WMI Explorer or any other tool which can run WMI queries.
    • Run WMI query "SELECT * FROM Win32_Product"
  2. Using wmic command-line interface:

    • Press WIN+R
    • Type "wmic", press Enter
    • In wmic command prompt type "/node:RemoteComputerName product"
  3. Using Powershell script:

    • Thru WMI object: Get-WmiObject -Class Win32_Product -Computer RemoteComputerName
    • thru Registry: Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize
    • thru Get-RemoteProgram cmdlet: Get-RemoteProgram -ComputerName RemoteComputerName
  1. 在 ROOT\CIMV2 命名空间上运行 WMI 查询:

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

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

    • 通过 WMI 对象:Get-WmiObject -Class Win32_Product -Computer RemoteComputerName
    • 通过注册表:Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall* | 选择对象显示名称、显示版本、发布者、安装日期 | Format-Table –AutoSize
    • 通过 Get-RemoteProgram cmdlet:Get-RemoteProgram -ComputerName RemoteComputerName

Source: https://www.action1.com/kb/list_of_installed_software_on_remote_computer.html

来源:https: //www.action1.com/kb/list_of_installed_software_on_remote_computer.html