powershell switch和正則表達式

$strPattern="軟件版本"ide

$text=net config workstationit

switch -Regex ($text)io

{class

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

}di

相關文章
相關標籤/搜索