共用方式為


Get-EmailTenantSettings

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

請使用 Get-EmailTenantSettings 指令小程式查看Office 365組織Microsoft Defender中優先帳號保護是否啟用或關閉。 欲了解更多關於優先帳戶的資訊,請參閱 「管理與監控優先帳戶」。

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

語法

Default (預設值)

Get-EmailTenantSettings
    [[-Identity] <EmailTenantSettingsIdParameter>]
    [<CommonParameters>]

Description

您必須已獲指派權限,才能執行此指令程式。 雖然這篇文章列出了 cmdlet 的所有參數,但如果某些參數未包含在你分配的權限中,你可能無法存取這些參數。 若要尋找在組織中執行任何 Cmdlet 或參數所需的權限,請參閱 Find the permissions required to run any Exchange cmdlet

範例

範例 1

Get-EmailTenantSettings | Format-List Identity,EnablePriorityAccountProtection

此範例顯示組織中優先帳號保護是啟用或停用。

參數

-Identity

適用:Exchange Online

Identity 參數指定你想查看的設定物件。 組織中唯一的設定物件名為 Default。

注意:Identity 參數的值$null或不存在的值,會回傳 所有 物件,就像你執行 Get- 指令時沒有 Identity 參數一樣。 請確認 Identity 參數的值清單是否準確,且不包含不存在的 $null 值。

參數屬性

類型:EmailTenantSettingsIdParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:False
來自管線的值:True
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

CommonParameters

此 cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters