Skip to content

Commit

Permalink
remove +=
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Feb 24, 2025
1 parent 3d4839e commit ce0fdd4
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ function Invoke-CIPPStandardQuarantineRequestAlert {

if ($CurrentState.Name -eq $PolicyName) {
try {
$cmdparams += @{
'Identity' = $PolicyName
}
$cmdparams['Identity'] = $PolicyName
New-ExoRequest -TenantId $Tenant -cmdlet 'Set-ProtectionAlert' -Compliance -cmdparams $cmdparams -UseSystemMailbox $true
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message 'Successfully configured Quarantine Request Alert' -sev Info
} catch {
Expand All @@ -63,10 +61,9 @@ function Invoke-CIPPStandardQuarantineRequestAlert {
}
} else {
try {
$cmdparams += @{
'Name' = $PolicyName
'ThreatType' = 'Activity'
}
$cmdparams['name'] = $PolicyName
$cmdparams['ThreatType'] = 'Activity'

New-ExoRequest -TenantId $Tenant -cmdlet 'New-ProtectionAlert' -Compliance -cmdparams $cmdparams -UseSystemMailbox $true
Write-LogMessage -API 'Standards' -Tenant $Tenant -Message 'Successfully created Quarantine Request Alert' -sev Info
} catch {
Expand Down

0 comments on commit ce0fdd4

Please sign in to comment.