如何查找今天安装/卸载的所有软件?
在我们的虚拟机中,我们将查看特定日期安装/卸载的应用程序
有什么方法可以自动找到它?
In our Virtual machines , we will look into what are the application installed/Uninstalled in the particular day
Is there any way to find it automatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Win32_Product 类的查询速度非常慢。尽可能多地过滤。
$computername="SomeServer"
$apps=get-wmiobject win32_product -filter "installdate='20120206'" -computer $computername
The Win32_Product class is very slow to query. Filter as much as you can.
$computername="SomeServer"
$apps=get-wmiobject win32_product -filter "installdate='20120206'" -computer $computername
WMI 界面应该适用于此。使用命令行:
wmic 产品
这是博客文章 更详细地描述了它以及如何获取 .csv 文件形式的结果。
The WMI interface should work for this. Use the command line:
wmic product
Here's a blog article that describes it in more detail and how to obtain the result as a .csv file.
我认为您无法找到有关已卸载应用程序的信息,但您可以从注册表中获取一些信息(使用 WMI 您只能获取 MSI 包):
I don't think you can find information on uninstalled applications but you can get some information from the registry (with WMI you can get only MSI packages):
要获取 msiexec 在特定日期安装的应用程序列表,请使用以下命令:
这适用于所有已安装的应用程序和 Microsoft 知识库(需要按日期过滤):
对于未安装的应用程序,您需要从以下位置查询
应用程序事件日志
:源“MsiInstaller
”或事件描述中“卸载”的“字符串搜索”。To get list of application installed by msiexec in a specific day use this:
this for all installed applications an Microsoft KBs (needs filtering by date):
For the unistalled applications you need to query the
application events logs
from source "MsiInstaller
" or a 'string search' of "uninstall" in the description of the event.