使用powershell禁用安全和维护通知吗?

问题描述 投票:0回答:1

是否有一种方法可以使用Powershell在Windows 10上禁用安全通知?我可以通过GUI禁用,但是使用脚本会更容易。

enter image description here

谢谢

windows powershell security notifications
1个回答
0
投票

使用ps修改以下Windows注册表项可能会成功(对于W10):

HKCU\Software\Policies\Microsoft\Windows\Explorer : DisableNotificationCenter

HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications : ToastEnabled

代码应如下所示:

Set-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0
© www.soinside.com 2019 - 2024. All rights reserved.