From 312f6fc6304c4d659f353d23f6a46614f520be01 Mon Sep 17 00:00:00 2001 From: Dirk Haex Date: Fri, 19 Jan 2024 20:49:52 +0100 Subject: [PATCH] Update Invoke-CIPPStandardPhishProtection.ps1 Corrected spelling of phising to phishing --- .../Public/Standards/Invoke-CIPPStandardPhishProtection.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardPhishProtection.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardPhishProtection.ps1 index 98a94ff6988a..a43efac1a4b7 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardPhishProtection.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardPhishProtection.ps1 @@ -25,11 +25,11 @@ function Invoke-CIPPStandardPhishProtection { New-GraphPostRequest -tenantid $tenant -Uri "https://graph.microsoft.com/beta/organization/$($TenantId.customerId)/branding/localizations/" -ContentType 'application/json' -asApp $true -Type POST -Body $defaultBrandingBody -AddedHeaders $AddedHeaders } if ($currentBody -like "*$CSS*") { - Write-Host 'Logon Screen Phising Protection system already active' + Write-Host 'Logon Screen Phishing Protection system already active' Write-LogMessage -API 'Standards' -tenant $tenant -message 'Logon Screen Phishing Protection system already active' -sev Info } else { $currentBody = $currentBody + $CSS - Write-Host 'Creating Logon Screen Phising Protection System' + Write-Host 'Creating Logon Screen Phishing Protection System' New-GraphPostRequest -tenantid $tenant -Uri "https://graph.microsoft.com/beta/organization/$($TenantId.customerId)/branding/localizations/0/customCSS" -ContentType 'text/css' -asApp $true -Type PUT -Body $CSS Write-LogMessage -API 'Standards' -tenant $tenant -message 'Enabled Logon Screen Phishing Protection system' -sev Info } @@ -49,4 +49,4 @@ function Invoke-CIPPStandardPhishProtection { if ($currentBody -like "*$CSS*") { $authstate = $true } else { $authstate = $false } Add-CIPPBPAField -FieldName 'PhishProtection' -FieldValue [bool]$authstate -StoreAs bool -Tenant $tenant } -} \ No newline at end of file +}