Invoke-SpfDkimDmarc
Invoke-SpfDkimDmarc copied to clipboard
PowerShell Module for checking SPF, DKIM and DMARC-record.
Invoke-SpfDkimDmarc
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.

System Requirements
This module requires PowerShell version 5.1 or higher.
Installation PowershellGallery (recommended)
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.
Manual Installation
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
Available cmdlets
After installing this module, you have the following cmdlets at your disposal.
Invoke-SpfDkimDmarcto 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-CSVcommand.Get-SPFRecordto check the SPF record for a single domain. The module also checks the charachter lenght of the SPF-record. This cmdlet has also an aliasgspffor quick checks.Get-DKIMRecordto check the DKIM record for a single domain. This cmdlet has also an aliasgdkimfor quick checks.Get-DMARCRecordto check the DMARC record for a single domain. This cmdlet has also an aliasgdmarcfor quick checks.Get-DNSSecto check whether the domain is protected with DNSSEC. This cmdlet has also an aliasgdnssecfor quick checks.
Split DNS environment
If you are using a split DNS environment, you can use the -Server parameter to specify an alternative DNS server.