Skip to content

Commit

Permalink
Removed Warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Dec 14, 2024
1 parent f9f8a89 commit e5f4669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion powershell/public/Test-MtPimAlertsExists.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Test-MtPimAlertsExists {
# Exclude Break Glass from Alerts
if ($null -ne $FilteredBreakGlass -and $null -ne $AffectedRoleAssignments) {
$AffectedRoleAssignments | Where-Object { $_.AssigneeId -in $($FilteredBreakGlass).Id } | ForEach-Object {
Write-Warning "$($_.AssigneeUserPrincipalName) has been defined as Break Glass and removed from $($Alert.id)"
Write-Verbose "$($_.AssigneeUserPrincipalName) has been defined as Break Glass and removed from $($Alert.id)"
}
$AffectedRoleAssignments = $AffectedRoleAssignments | Where-Object { $_.AssigneeId -notin $($FilteredBreakGlass).Id }

Expand Down
4 changes: 2 additions & 2 deletions powershell/public/cisa/exchange/Test-MtCisaDkim.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ function Test-MtCisaDkim {
}
if((Get-Date) -gt $config.RotateOnDate){
if($Selector -ne $config.SelectorAfterRotateOnDate){
Write-Warning "Using DKIM $($config.SelectorAfterRotateOnDate) based on EXO config"
Write-Verbose "Using DKIM $($config.SelectorAfterRotateOnDate) based on EXO config"
}
$Selector = $config.SelectorAfterRotateOnDate
}else{
if($Selector -ne $config.SelectorBeforeRotateOnDate){
Write-Warning "Using DKIM $($config.SelectorBeforeRotateOnDate) based on EXO config"
Write-Verbose "Using DKIM $($config.SelectorBeforeRotateOnDate) based on EXO config"
}
$selector = $config.SelectorBeforeRotateOnDate
}
Expand Down

0 comments on commit e5f4669

Please sign in to comment.