From 8d4bb16f80ad2a80aac8281bf74343e24c9d4ebd Mon Sep 17 00:00:00 2001 From: Marco Deleu Date: Mon, 23 Dec 2024 20:19:04 -0300 Subject: [PATCH 1/2] update error message for DMARC --- .../exchange/ConvertFrom-MailAuthenticationRecordDmarc.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDmarc.ps1 b/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDmarc.ps1 index a5cf2bf2..de9767ae 100644 --- a/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDmarc.ps1 +++ b/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDmarc.ps1 @@ -248,7 +248,7 @@ function ConvertFrom-MailAuthenticationRecordDmarc { if ($record) { $dmarcRecord = [DMARCRecord]::new($record) } else { - return "Failure to obtain record" + return "Record does not exist" } } else { Write-Verbose "`nFor non-Windows platforms, please install DnsClient-PS module." @@ -266,4 +266,4 @@ function ConvertFrom-MailAuthenticationRecordDmarc { return $dmarcRecord } -} \ No newline at end of file +} From 816d362dc0f6ee2c60b7765ebf0b5c7f84a73769 Mon Sep 17 00:00:00 2001 From: Marco Deleu Date: Mon, 23 Dec 2024 20:20:35 -0300 Subject: [PATCH 2/2] Update ConvertFrom-MailAuthenticationRecordDkim.ps1 --- .../exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 b/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 index d32551c1..049d3c6a 100644 --- a/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 +++ b/powershell/public/cisa/exchange/ConvertFrom-MailAuthenticationRecordDkim.ps1 @@ -118,7 +118,7 @@ function ConvertFrom-MailAuthenticationRecordDkim { if ($record) { $dkimRecord = [DKIMRecord]::new($record) } else { - return "Failure to obtain record" + return "Record does not exist" } } else { Write-Verbose "`nFor non-Windows platforms, please install DnsClient-PS module." @@ -136,4 +136,4 @@ function ConvertFrom-MailAuthenticationRecordDkim { return $dkimRecord } -} \ No newline at end of file +}