get-wmiobject匹配多个服务 [英] get-wmiobject match multiple services
本文介绍了get-wmiobject匹配多个服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用get-wmiobject来匹配多个服务和startmode? p>
这样但是
get-wmiobject win32_service -computername $ servername |其中{$ _.Didesyname -match" Netbackup *" -and $ _。startmode -eq" auto"}
但我还需要服务"Symantec *"
如何添加?
解决方案
get-wmiobject win32_service -computername
servername |其中{((
_。Displaindame -match" Netbackup") - 或(
how do I do a get-wmiobject to match multiple services and startmode?
like this but
get-wmiobject win32_service -computername $servername | where {$_.Displayname -match "Netbackup*" -and $_.startmode -eq "auto"}
but I also need service "Symantec*"
how do I add that in?
解决方案
get-wmiobject win32_service -computername
servername | where {((
_.Displayname -match "Netbackup")-or (
这篇关于get-wmiobject匹配多个服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文