关于了解计算机中安装的防病毒软件 [英] About knowing which antivirus installed in a computer

查看:114
本文介绍了关于了解计算机中安装的防病毒软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在检查我的计算机上安装的防病毒名称和版本,虽然我安装了防病毒软件,但它显示为无法找到!!

是否需要将名称更改为我的防病毒名称或我们必须只给出名称为%antivirus%???



我尝试过:



$ avSoftware = get-wmiobject -classWin32_Product-namespaceroot \cimv2`

-computername。 -filter名称'%antivirus%'



if($ avSoftware.Count -gt 0){

foreach($ av)在$ avSoftware中){

写主机$ p.Name $ p.Version

}

}否则{

写主机找不到AV软件

}

I am checking for antivirus name and version installed on my computer,although i have anti virus installed it is showing as "no av found"!!.
Whether i need to change name to my antivirus name or we have to give "name as %antivirus% " only???

What I have tried:

$avSoftware = get-wmiobject -class "Win32_Product" -namespace "root\cimv2" `
-computername "." -filter "Name like '%antivirus%'"

if ($avSoftware.Count -gt 0) {
foreach ($av in $avSoftware) {
write-host $p.Name $p.Version
}
} else {
write-host "No AV software found"
}

推荐答案

avSoftware = get-wmiobject -classWin32_Product-namespace root \cimv2`

-computername。 -filterName like'%antivirus%'



if(
avSoftware = get-wmiobject -class "Win32_Product" -namespace "root\cimv2" `
-computername "." -filter "Name like '%antivirus%'"

if (


avSoftware.Count -gt 0){

foreach(
avSoftware.Count -gt 0) {
foreach (


av in


这篇关于关于了解计算机中安装的防病毒软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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