Domain Detective

API Reference

Class

CmdletNewDesiredStateBestPractices

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Base PSCmdlet
Modifiers sealed
Attributes
Cmdlet("New", "DDDesiredStateBestPractices") OutputType([typeof(DesiredStateBestPracticeSettings)])

Creates best-practice settings for Desired State evaluation.

Inheritance

  • PSCmdlet
  • CmdletNewDesiredStateBestPractices

Examples

Enable active mail probes for best-practice gaps

PS>


New-DDDesiredStateBestPractices -IncludeActiveMailProbes
        

Adds SMTP/IMAP/POP probes to the recommended best-practice checks.

Override the best-practice check set

PS>


New-DDDesiredStateBestPractices -Checks DMARC,SPF,DKIM,MTASTS,TLSRPT
        

Uses only the specified checks when DesiredStateMode is BestPracticesForUnspecified.

Constructors

public CmdletNewDesiredStateBestPractices() #

Methods

ProcessRecord() #

Writes the best-practice settings object.

Properties

public HealthCheckType[] Checks { get; set; } #
Parameter(Mandatory = false)

Optional list of checks to use as the best-practice baseline.

public SwitchParameter IncludeActiveMailProbes { get; set; } #
Parameter(Mandatory = false)

Include SMTP/IMAP/POP active probes in the best-practice set.

{{ include "footer" }}