Skip to content

Instantly share code, notes, and snippets.

@martin9700
Last active November 27, 2016 12:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save martin9700/a88529fa18c01462c5f3385d43c93a0e to your computer and use it in GitHub Desktop.
$Tests = @(
"Running partition tests on : ForestDnsZones"
"Running enterprise tests on : domain.surlyadmin.com"
)
ForEach ($Line in $Tests)
{
Switch ($_) -Regex
{
"running (?<Zone>partition|enterprise) tests on : (?<PartTest>.*)" {
"Test type is: $($Matches.Zone)"
"Test is running in: $($Matches.PartTest"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment