powershell switch和正则表达式

$strPattern="软件版本"ide

$text=net config workstationit

switch -Regex ($text)io

{class

    $strPattern {Write-Host $switch.current}软件

}di

相关文章
相关标签/搜索