Update createSolutionV2.ps1 (#7374)
This commit is contained in:
Родитель
43c0bf348c
Коммит
284f45dc79
|
@ -1959,7 +1959,7 @@ foreach ($inputFile in $(Get-ChildItem $path)) {
|
|||
if ($yaml.relevantTechniques -match ' ') {
|
||||
$yaml.relevantTechniques = $yaml.relevantTechniques -replace ' ', ''
|
||||
}
|
||||
$alertRule | Add-Member -NotePropertyName techniques -NotePropertyValue ($yaml.relevantTechniques | ForEach-Object { ($_ -split "\.")[0] }) # Add relevantTechniques property if exists
|
||||
$alertRule | Add-Member -NotePropertyName techniques -NotePropertyValue ([array]($yaml.relevantTechniques | ForEach-Object { ($_ -split "\.")[0] })) # Add relevantTechniques property if exists
|
||||
}
|
||||
|
||||
$alertRule.description = $yaml.description.TrimEnd() #remove newlines at the end of the string if there are any.
|
||||
|
|
Загрузка…
Ссылка в новой задаче