无法弄清楚如何使用Namespace:System.Management.Automation中的“ | Where-Object {$ _。Name -like” ada *“}}

时间:2019-04-05 10:09:04

标签: c# powershell

命名空间:System.Management.Automation

尝试使用自动化名称空间中的C#Powershell中匹配对象

对此进行了尝试,但是它返回-如未知参数一样

PowerShell shell = PowerShell.Create("Get-Childitem").
                                    AddCommand("where-object { $_.Name -like "*a" }");

0 个答案:

没有答案