首先看看where-object筛选: ``` Get-WmiObject -Class Win32_Product -ComputerName . | Where-Object -FilterScript {$_.Name -eq "Microsoft .NET Framework 2.0"} | Format-List -Property * ``` 下面是WQL语法筛选的两种格式(一个是常规方式,另外一个是转义符方式) ``` Get-WmiObject -Class Win32_Product -ComputerName . -Filter "Name='Microsoft .NET Framework 2.0'"| Format-List -Property * Get-WmiObject -Class Win32_Product -ComputerName . -Filter Name`=`'Microsoft` .NET` Framework` 2.0`' | Format-List -Property * ``` 您也可以关注下方微信公众号获取更多资讯 ![](https://s1.51cto.com/images/blog/201905/09/3d8bd98e9bdc0d340b3f96b7050ce0fd.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)