使用Power-shell命令查找带有版本的软件 [英] Find Software with Version using Power-shell Command

查看:61
本文介绍了使用Power-shell命令查找带有版本的软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

         有非常迫切的要求找到特定软件的版本。有没有办法找到结果,因为我们在下面的代码片段中写下使用批处理脚本查找软件列表。

         In have very urgent requirement to find the version of particular software .Is there any way to find the result as we write below snippet of code to find the software list using batch script.

批处理脚本。

WMIC产品,其中'name like'%Opera%"'获取名称,版本

谢谢,质量沟通提供高质量的工作。 http://siddiq-sharepoint2010.blogspot.in/ Siddiqali Mohammad。

Thanks, Quality Communication Provides Quality Work. http://siddiq-sharepoint2010.blogspot.in/ Siddiqali Mohammad .

推荐答案

尝试使用Get-WmiObject:

Try it with Get-WmiObject:

Get-WmiObject win32_product |选择名称,版本

Get-WmiObject win32_product | select name, version

如果您想搜索特殊版本,请尝试举例(Office 2007)

If you want to search for a special version, try for example (Office 2007)

Get-WmiObject win32_product |其中{

Get-WmiObject win32_product | where {


_。version -like '12 .0.6612.1000'} |选择名称,版本
_.version -like '12.0.6612.1000'} | select name, version


这篇关于使用Power-shell命令查找带有版本的软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆