Invoke-SpfDkimDmarc is a function within the PowerShell module named DomainHealthChecker
that can check the SPF, DKIM and DMARC record for one or multiple domains. On installing this module you can use Invoke-SpfDKimDmarc
to check the records. You can also check the records individually by using the cmdlets Get-SPFrecord
, Get-DKIMRecord
or by running the Get-DMARCRecord
to check the record of a single domain.
This module requires PowerShell version 5.1 or higher.
The module is published on the PowerShellGallery. You can install this module directly from the PowerShellGallery with the following command:
C:\> Install-Module DomainHealthChecker
PowerShellGallery will automatically download and install the latest version of the module.
Download the module from the 'Releases' tab from Github. Just download and extract the ZIP file, and just import the module by running this command below:
C:\> Import-Module -Name .\DomainHealthChecker.psm1
After installing this module, you have the following cmdlets at your disposal.
Invoke-SpfDkimDmarc
to check the SPF, DKIM, and DMARC records for one or multiple domains. You can export the results to a file. For example, to a comma-separated file with theExport-CSV
command.Get-SPFRecord
to check the SPF record for a single domain. This cmdlet has also an aliasgspf
for quick checks.Get-DKIMRecord
to check the DKIM record for a single domain. This cmdlet has also an aliasgdkim
for quick checks.Get-DMARCRecord
to check the DMARC record for a single domain. This cmdlet has also an aliasgdmarc
for quick checks.
If you are using a split DNS environment, you can still use this module using the -Server
parameter to specify an alternative DNS server.