API Reference
CmdletImportDmarcAggregateSnapshot
Imports DMARC aggregate reports into a time-series store.
Inheritance
- PSCmdlet
- CmdletImportDmarcAggregateSnapshot
Examples
Ingest DMARC aggregate reports from a folder
Import-DDDmarcAggregateSnapshot -Path .\Reports -StorePath .\Store
Ingest DMARC aggregate report attachments from IMAP
Import-DDDmarcAggregateSnapshot -StorePath .\Store -ImapHost imap.example.com -Credential (Get-Credential) -Mailbox INBOX -SinceUtc (Get-Date).ToUniversalTime().AddDays(-7)
Constructors
public CmdletImportDmarcAggregateSnapshot() #Methods
ProcessRecord() #Executes the cmdlet.
Inherited Methods
public PathInfo CurrentProviderLocation(String providerId) #PathInfoParameters
- providerId String
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
public Collection<String> GetResolvedProviderPathFromPSPath(String path, out ProviderInfo provider) #Collection<String>Parameters
- path String
- provider ProviderInfo
public override String GetResourceString(String baseName, String resourceId) #StringParameters
- baseName String
- resourceId String
public String GetUnresolvedProviderPathFromPSPath(String path) #StringParameters
- path String
public Object GetVariableValue(String name, Object defaultValue) #ObjectParameters
- name String
public Boolean ShouldContinue(String query, String caption) #BooleanParameters
- query String
- caption String
- hasSecurityImpact Boolean
- yesToAll Boolean
- noToAll Boolean
public Boolean ShouldProcess(String verboseDescription, String verboseWarning, String caption) #BooleanParameters
- verboseDescription String
- verboseWarning String
- caption String
- shouldProcessReason ShouldProcessReason
public Void ThrowTerminatingError(ErrorRecord errorRecord) #VoidParameters
- errorRecord ErrorRecord
public Void WriteCommandDetail(String text) #VoidParameters
- text String
public Void WriteError(ErrorRecord errorRecord) #VoidParameters
- errorRecord ErrorRecord
public Void WriteInformation(InformationRecord informationRecord) #VoidParameters
- messageData Object
- tags String[]
public Void WriteObject(Object sendToPipeline) #VoidParameters
- sendToPipeline Object
- enumerateCollection Boolean
public Void WriteProgress(ProgressRecord progressRecord) #VoidParameters
- progressRecord ProgressRecord
Properties
public String Path { get; set; } #Parameter(Mandatory = true, ParameterSetName = "Path", Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true) ValidateNotNullOrEmptyPath to a report file/folder/wildcard.
public String StorePath { get; set; } #Parameter(Mandatory = true) ValidateNotNullOrEmptyRoot directory for snapshot storage.
public String ImapHost { get; set; } #Parameter(Mandatory = true, ParameterSetName = "Imap") ValidateNotNullOrEmptyIMAP host used for mailbox ingestion.
public Int32 ImapPort { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")IMAP port (default 993).
public Boolean ImapUseSsl { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")Use SSL/TLS for IMAP connection (default true).
public PSCredential Credential { get; set; } #Parameter(Mandatory = true, ParameterSetName = "Imap")Credential for IMAP authentication.
public String Mailbox { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")Mailbox folder name (default INBOX).
public String SubjectContains { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")Only scan messages with a subject containing this string.
public Nullable<DateTime> SinceUtc { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")Only fetch messages delivered since this UTC date/time.
public Int32 MaxMessages { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")Maximum number of messages to scan (default 500).
public Int32 MaxAttachmentMb { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")Maximum attachment size to decode in MB (0 for unlimited).
public Boolean OnlyUnseen { get; set; } #Parameter(Mandatory = false, ParameterSetName = "Imap")Only consider unseen messages (default true).
public SwitchParameter NoDeduplicate { get; set; } #Parameter(Mandatory = false)Disable in-run deduplication (by report-id/date-range/org/domain).
public SwitchParameter AsResult { get; set; } #Parameter(Mandatory = false)Return the ingest result wrapper instead of snapshots.
Inherited Properties
public PSEventManager Events { get; } #public PSHost Host { get; } #public CommandInvocationIntrinsics InvokeCommand { get; } #public ProviderIntrinsics InvokeProvider { get; } #public JobManager JobManager { get; } #public JobRepository JobRepository { get; } #public InvocationInfo MyInvocation { get; } #public PagingParameters PagingParameters { get; } #public String ParameterSetName { get; } #public SessionState SessionState { get; } #public ICommandRuntime CommandRuntime { get; set; } #public Boolean Stopping { get; } #public CommandOrigin CommandOrigin { get; } #