< Back

Search-MailFrom

Tue Jan 14, 2020 12:54 am

NAME Search-MailFrom



SYNOPSIS

Search a mailbox by "from address"





SYNTAX

Search-MailFrom [[-Identity] <String>] [[-From] <String>] [[-Start] <DateTime>] [[-End] <DateTime>] [-Delete]

[[-ResultTarget] <String>] [<CommonParameters>]





DESCRIPTION

Use a search string with a trailing wildcard(*) to filter the mailbox





PARAMETERS

-Identity <String>



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-From <String>

Cannot start with a wildcard, only end with *



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Start <DateTime>



Required? false

Position? 3

Default value (Get-date).Date

Accept pipeline input? false

Accept wildcard characters? false



-End <DateTime>



Required? false

Position? 4

Default value $Start.addDays(1).Date

Accept pipeline input? false

Accept wildcard characters? false



-Delete [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-ResultTarget <String>



Required? false

Position? 5

Default value $env:username

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS