Skip to content

Commit c8f257f

Browse files
DKIM
1 parent fb00e7f commit c8f257f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardAddDKIM.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Invoke-CIPPStandardAddDKIM {
3232

3333
param($Tenant, $Settings)
3434
#$Rerun -Type Standard -Tenant $Tenant -API 'AddDKIM' -Settings $Settings
35-
35+
Test-CIPPStandardLicense -StandardName 'AddDKIM' -TenantFilter $Tenant -RequiredCapabilities @('EXCHANGE_S_STANDARD', 'EXCHANGE_S_ENTERPRISE', 'EXCHANGE_LITE') #No Foundation because that does not allow powershell access
3636

3737
$DkimRequest = @(
3838
@{
@@ -103,7 +103,7 @@ function Invoke-CIPPStandardAddDKIM {
103103
$NewDomains = $AllDomains | Where-Object { $DKIM.Domain -notcontains $_ }
104104
$SetDomains = $DKIM | Where-Object { $AllDomains -contains $_.Domain -and $_.Enabled -eq $false }
105105

106-
If ($Settings.remediate -eq $true) {
106+
if ($Settings.remediate -eq $true) {
107107

108108
if ($null -eq $NewDomains -and $null -eq $SetDomains) {
109109
Write-LogMessage -API 'Standards' -tenant $Tenant -message 'DKIM is already enabled for all available domains.' -sev Info

0 commit comments

Comments
 (0)