远程获取已安装的应用程序列表(不是WMI)

时间:2018-02-07 12:23:14

标签: windows-server-2012

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

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

中获取字符串

1 个答案:

答案 0 :(得分:0)

您可以使用WMI:

Get-WmiObject win32_product

但不推荐使用它,因为它被打破了。您应该只使用注册表方法:

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