Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Get-MessageTrace需要Powershell命令来显示到1个邮箱的入站邮件,该邮箱按Exchange Online日期分组_Powershell_Office365_Exchange Server_Office365api - Fatal编程技术网

Get-MessageTrace需要Powershell命令来显示到1个邮箱的入站邮件,该邮箱按Exchange Online日期分组

Get-MessageTrace需要Powershell命令来显示到1个邮箱的入站邮件,该邮箱按Exchange Online日期分组,powershell,office365,exchange-server,office365api,Powershell,Office365,Exchange Server,Office365api,我想我会使用Get-MessageTrace,但我需要显示1个邮箱的入站邮件,按日期分组。这是用于Exchange 365的 Date Count ____ ____ 8/22/2018 45 8/23/2018 15 8/24/2018 22 您可以使用Powershell检查特定电子邮件帐户在特定日期期间收到的电子邮件数量 请尝试以下代码: $creds = Get-Credential $session = New-PSSession -

我想我会使用Get-MessageTrace,但我需要显示1个邮箱的入站邮件,按日期分组。这是用于Exchange 365的

Date         Count
____         ____
8/22/2018    45
8/23/2018    15
8/24/2018    22

您可以使用Powershell检查特定电子邮件帐户在特定日期期间收到的电子邮件数量

请尝试以下代码:

$creds = Get-Credential
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://ps.outlook.com/powershell" -Credential $creds -Authentication Basic -AllowRedirection
$messages = Get-MessageTrace -RecipientAddress address@example.com -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)
$messages.Count

有关更多信息,请查看以下链接:

您能向我们展示您迄今为止的尝试吗?