【问题标题】:Get the list of installed applications remotely (not WMI)远程获取已安装应用程序的列表(不是 WMI)
【发布时间】:2018-02-07 21:39:43
【问题描述】:

有没有一种方法可以从 Regestry 获取已安装应用程序的列表,而无需直接通过 WMI 与 PC 交互?

我在域控制器和一堆 PC 上提升为 RW 用户。我想编写一个自动化 PS 脚本,它将从 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall 中获取字符串

【问题讨论】:

  • 你还没有尝试过任何东西。在投入 SO 之前尝试付出努力。

标签: windows-server-2012


【解决方案1】:

您可以使用 WMI:

Get-WmiObject win32_product

但不建议使用它,因为它已损坏。您应该只使用注册表方法:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-04
    • 1970-01-01
    • 1970-01-01
    • 2020-11-14
    相关资源
    最近更新 更多