Get-RetentionEvent

此指令程式只能在雲端式服務中使用。

使用 Get-RetentionEvent Cmdlet 來檢視組織中的保留事件。

如需下方<語法>一節中參數集的詳細資訊,請參閱 Exchange Cmdlet 語法

Syntax

Get-RetentionEvent
   [[-Identity] <EwsStoreObjectIdParameter>]
   [-AllStatus]
   [-DomainController <Fqdn>]
   [<CommonParameters>]

Description

您必須已獲指派權限,才能執行此指令程式。 雖然本主題已列出這個指令程式的所有參數,不過,如果某些參數並未包含在指派給您的權限中,您可能就無法存取這些參數。 若要尋找在組織中執行任何 Cmdlet 或參數所需的權限,請參閱 Find the permissions required to run any Exchange cmdlet

範例

範例 1

Get-RetentionEvent

此範例會傳回所有保留事件的摘要清單。

範例 2

Get-RetentionEvent -Identity x | Format-List

此範例會傳回有關保留指定之保留事件的詳細資訊。

參數

-AllStatus

AllStatus 參數會指定是否要在結果中包含零計數事件。 您不需要使用此參數指定值。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

-DomainController

將保留此參數供 Microsoft 內部使用。

Type:Fqdn
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Security & Compliance

-Identity

Identity 參數會指定您想要檢視的保留事件。

Type:EwsStoreObjectIdParameter
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Exchange Online, Security & Compliance