PowerShell – Case Select

[sourcecode language=”powershell”]
switch ($a) {
"Value" { Write-Output "A: $a" }
"Value" { Write-Output "A: $a" }
default { Write-Output "A: $a"}
}
[/sourcecode]

Discover more from Patrick Marc's Networks

Subscribe now to keep reading and get access to the full archive.

Continue reading