是否有办法禁用操作中心通知在Windows 10与PowerShell?
我找到了一个方法2注册表项,DisableNotificationCenter
和ToastEnabled
.
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。