1
0
mirror of https://github.com/jaapbrasser/SharedScripts.git synced 2025-12-24 21:51:38 +02:00

Updated two scripts

This commit is contained in:
Jaap Brasser
2016-09-29 18:20:08 +02:00
parent 0d4e237ce3
commit aa7f807b6d
2 changed files with 3 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ Will retrieve the installed programs on server01/02 that are passed on to the fu
}
} | ForEach-Object -Begin {
if ($SimilarWord) {
$Regex = [regex]"(^(.+?\s){$SimilarWord}).*$|(.*)"
$Regex = [regex]('(^(.+?\s){{0}}).*$|(.*)' -f $SimilarWord)
} else {
$Regex = [regex]"(^(.+?\s){3}).*$|(.*)"
}