0
我试图过滤掉一些简单的服务对象上的垃圾,但-notlike会变长,我尝试过但不能得到它的工作,但是有没有办法删除重复的-notlike成一个例如-notlike '软件选装*', 'APPLIC *', '这*', '那*'Powershell中的清洁/多重-notlike
Where-Object { $_.StartMode -eq 'Auto' -and $_.State -ne 'Running' -and $_.Displayname -notlike '*.NET*' -and $_.Displayname -notlike 'Softw*'-and $_.Displayname -notlike 'Applic*'}
你确定你的正则表达式吗? –
@ C.B。 - 我刚刚更新了它。 – Lee
简单,当你知道如何,谢谢:) –