From a0ddd3c7816acc8076540a7bc1a77be87ff65c1f Mon Sep 17 00:00:00 2001 From: Snozz Date: Thu, 11 Jul 2024 05:40:56 -0700 Subject: [PATCH] Fix wrong type reference --- .../CISA/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powershell/public/CISA/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 b/powershell/public/CISA/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 index 8116521e..4133eeeb 100644 --- a/powershell/public/CISA/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 +++ b/powershell/public/CISA/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 @@ -104,7 +104,7 @@ Function ConvertFrom-MailAuthenticationRecordDkim { NameServer = $dkimSplat.Server ErrorAction = $dkimSplat.ErrorAction } - $dkimRecord = [SPFRecord]::new(((Resolve-Dns @dkimSplatAlt).Answers | ` + $dkimRecord = [DKIMRecord]::new(((Resolve-Dns @dkimSplatAlt).Answers | ` Where-Object {$_.RecordType -eq "TXT"} | ` Where-Object {$_.Text -imatch $matchRecord}).Text) }else{