You've already forked SharedScripts
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:
@@ -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}).*$|(.*)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user