具有where子句的Dism / online / Get-Features [英] Dism /online /Get-Features with where clause

查看:199
本文介绍了具有where子句的Dism / online / Get-Features的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何使用where enabled子句过滤DISM语句的方法? 我正在尝试

Get-ClientFeature < span style ="font-size:x-small"> | sort 名称 | 格式表 - AutoSize

Is there any method of filtering a DISM statement with a where enabled clause?  I am trying to do a

Get-ClientFeature|sortstate,name|Format-Table-AutoSize

Dism / online / Get-Features where " state
-eq enabled"

Dism/online/Get-Featureswhere"state -eq enabled"

我试过Dism / online / Get-Features Where-Object {$ _.State -match"True"}

I have tried Dism /online /Get-Features Where-Object {$_.State -match "True"}

推荐答案

嗨Pinchepooch,

Hi Pinchepooch,

坚持'Dism / online / Get-Features'  。

我们已经为Windows2012开发了PowerShell替代方案。

We already have a PowerShell alternative for Windows2012 onwards.


Computers =" Comp1"," Comp2"
Computers = "Comp1","Comp2"


computers |%{Get-WindowsFeature -Computername
computers | %{Get-WindowsFeature -Computername


这篇关于具有where子句的Dism / online / Get-Features的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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