API Reference
Class
CmdletNewDesiredStateDmarc
Creates a DMARC desired state policy fragment.
Inheritance
- PSCmdlet
- CmdletNewDesiredStateDmarc
Examples
Require reject/quarantine and enforce a specific rua suffix
PS>
New-DDDesiredStateDmarc -Enabled $true -AllowedPolicies reject,quarantine -RequireRua $true -AllowedReportDomainSuffixes dmarc.powermarc.com
Constructors
public CmdletNewDesiredStateDmarc() #Methods
ProcessRecord() #Creates a DMARC policy fragment as a DesiredStateProfile.
Inherited Methods
public PathInfo CurrentProviderLocation(String providerId) #Returns:
PathInfoInherited from PSCmdlet
Parameters
- providerId String
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public Collection<String> GetResolvedProviderPathFromPSPath(String path, out ProviderInfo provider) #Returns:
Collection<String>Inherited from PSCmdlet
Parameters
- path String
- provider ProviderInfo
public override String GetResourceString(String baseName, String resourceId) #Returns:
StringInherited from Cmdlet
Parameters
- baseName String
- resourceId String
public String GetUnresolvedProviderPathFromPSPath(String path) #Returns:
StringInherited from PSCmdlet
Parameters
- path String
public Object GetVariableValue(String name, Object defaultValue) #Returns:
ObjectInherited from PSCmdlet
Parameters
- name String
public Boolean ShouldContinue(String query, String caption) #Returns:
BooleanInherited from Cmdlet
Parameters
- query String
- caption String
- hasSecurityImpact Boolean
- yesToAll Boolean
- noToAll Boolean
public Boolean ShouldProcess(String verboseDescription, String verboseWarning, String caption) #Returns:
BooleanInherited from Cmdlet
Parameters
- verboseDescription String
- verboseWarning String
- caption String
- shouldProcessReason ShouldProcessReason
public Void ThrowTerminatingError(ErrorRecord errorRecord) #Returns:
VoidInherited from Cmdlet
Parameters
- errorRecord ErrorRecord
public Void WriteCommandDetail(String text) #Returns:
VoidInherited from Cmdlet
Parameters
- text String
public Void WriteError(ErrorRecord errorRecord) #Returns:
VoidInherited from Cmdlet
Parameters
- errorRecord ErrorRecord
public Void WriteInformation(InformationRecord informationRecord) #Returns:
VoidInherited from Cmdlet
Parameters
- messageData Object
- tags String[]
public Void WriteObject(Object sendToPipeline) #Returns:
VoidInherited from Cmdlet
Parameters
- sendToPipeline Object
- enumerateCollection Boolean
public Void WriteProgress(ProgressRecord progressRecord) #Returns:
VoidInherited from Cmdlet
Parameters
- progressRecord ProgressRecord
Properties
public Nullable<Boolean> Enabled { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> RequireRecord { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> RequireValidRecord { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> RequireSingleRecord { get; set; } #Parameter(Mandatory = false)public String[] AllowedPolicies { get; set; } #Parameter(Mandatory = false) ValidateSet(["none", "quarantine", "reject"])public String[] AllowedSubdomainPolicies { get; set; } #Parameter(Mandatory = false) ValidateSet(["none", "quarantine", "reject"])public Nullable<Boolean> RequireSubdomainPolicyTag { get; set; } #Parameter(Mandatory = false)public String[] AllowedAspfAlignments { get; set; } #Parameter(Mandatory = false) ValidateSet(["r", "s"])public String[] AllowedAdkimAlignments { get; set; } #Parameter(Mandatory = false) ValidateSet(["r", "s"])public Nullable<Boolean> RequireRua { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> RequireMailtoRua { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> DisallowHttpRua { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> DisallowRuf { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> DisallowHttpRuf { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> DisallowWeakPolicy { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> DisallowRecordOver255 { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> DisallowUnknownTags { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> DisallowDeprecatedTags { get; set; } #Parameter(Mandatory = false)public String[] AllowedReportDomainSuffixes { get; set; } #Parameter(Mandatory = false)public Nullable<Boolean> RequireExternalReportAuthorization { get; set; } #Parameter(Mandatory = false)Inherited Properties
public PSEventManager Events { get; } #Inherited from PSCmdlet
public PSHost Host { get; } #Inherited from PSCmdlet
public CommandInvocationIntrinsics InvokeCommand { get; } #Inherited from PSCmdlet
public ProviderIntrinsics InvokeProvider { get; } #Inherited from PSCmdlet
public JobManager JobManager { get; } #Inherited from PSCmdlet
public JobRepository JobRepository { get; } #Inherited from PSCmdlet
public InvocationInfo MyInvocation { get; } #Inherited from PSCmdlet
public PagingParameters PagingParameters { get; } #Inherited from PSCmdlet
public String ParameterSetName { get; } #Inherited from PSCmdlet
public SessionState SessionState { get; } #Inherited from PSCmdlet
public ICommandRuntime CommandRuntime { get; set; } #Inherited from Cmdlet
public Boolean Stopping { get; } #Inherited from Cmdlet
public CommandOrigin CommandOrigin { get; } #Inherited from InternalCommand