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



是否有办法禁用操作中心通知在Windows 10与PowerShell?

我找到了一个方法2注册表项,DisableNotificationCenterToastEnabled.

New-Item -Path "HKCU:SoftwarePoliciesMicrosoftWindows" -Name "Explorer" -force
New-ItemProperty -Path "HKCU:SoftwarePoliciesMicrosoftWindowsExplorer" -Name "DisableNotificationCenter" -PropertyType "DWord" -Value 1
New-ItemProperty -Path "HKCU:SoftwareMicrosoftWindowsCurrentVersionPushNotifications" -Name "ToastEnabled" -PropertyType "DWord" -Value 0

这适用于PowerShell 5在Windows 10 EN,版本21H2。

最新更新