共用方式為


DefaultNotificationsSetting

預設通知設定

支援版本

  • Windows 和 macOS 上,版本 77 或更新版本

描述

設定網站是否可以顯示桌面通知。 您可以預設允許 ('AllowNotifications')、預設拒絕 ('BlockNotifications'),或在每次網站想要顯示通知時詢問使用者 ('AskNotifications')。

如果未設定此原則,則預設為允許顯示通知,且使用者可以變更此設定。

原則選項對應:

  • AllowNotifications (1) = 允許網站顯示桌面通知

  • BlockNotifications (2) = 不允許任何網站顯示桌面通知

  • AskNotifications (3) = 每次網站想要顯示桌面通知時詢問

設定此原則時,請使用上述資訊。

原則選項對應:

設定此原則時,請使用此資訊。

  • AllowNotifications (1) = 允許網站顯示桌面通知
  • BlockNotifications (2) = 不允許任何網站顯示桌面通知
  • AskNotifications (3) = 每次網站想要顯示桌面通知時詢問

支援的功能

  • 可強制執行:是
  • 可以建議:否
  • 動態原則重新整理:是
  • 每個配置文件:是
  • 適用於使用 Microsoft 帳戶登入的設定檔:否

資料類型

  • 整數

Windows 資訊和設定

群組原則 (ADMX) 資訊

  • GP 唯一名稱:DefaultNotificationsSetting
  • GP 名稱:預設通知設定
  • GP 路徑 (強制):系統管理範本/Microsoft Edge/內容設定
  • GP 路徑 (建議):不適用
  • GP ADMX 檔案名稱:MSEdge.admx

範例值

Don't allow any site to show desktop notifications

登錄設定

  • 路徑 (強制):SOFTWARE\Policies\Microsoft\Edge
  • 路徑 (建議):不適用
  • 值名稱:DefaultNotificationsSetting
  • 值類型:REG_DWORD

登錄值範例

0x00000002

Mac 資訊和設定

  • 喜好設定索引鍵名稱:DefaultNotificationsSetting
  • 範例值:
<integer>2</integer>

請參閱