簡體   English   中英

Powershell腳本禁用所有Windows 10通知?

[英]Powershell script to disable all Windows 10 Notifications?

有沒有辦法使用 PowerShell 在 Windows 10 中禁用操作中心通知?

我找到了一種使用 2 個注冊表項DisableNotificationCenterToastEnabled的方法。

New-Item -Path "HKCU:\Software\Policies\Microsoft\Windows" -Name "Explorer" -force
New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -PropertyType "DWord" -Value 1
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -PropertyType "DWord" -Value 0

這適用於 Windows 10 EN 版本 21H2 上的 PowerShell 5。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM