Win10 - disable notifications in lock screen

I’m trying to disable all the notifications from the lock screen. I found this page http://www.tenforums.com/tutorials/31116-lock-screen-app-notifications-turn-off-windows-10-a.html but I can’t get the registry change to work.

I assume that I need to run it a current user (because of HKCU).

I have so far tried two different methods:


prefetch RunAsCurrentUser-2.0.3.1.exe.tmp sha1:fd0c5a7bec0e9a4741bbe1804e9c4a62e42d6d25 size:149903 http://hexen.solita.fi:52311/Uploads/fd0c5a7bec0e9a4741bbe1804e9c4a62e42d6d25/RunAsCurrentUser-2.0.3.1.exe.tmp sha256:2c4043b7ac0b0668137bd9bd5778075d3389c1f6b71d0ab2ae8904fd87c3a4b7
extract RunAsCurrentUser-2.0.3.1.exe.tmp

run __Download\RunAsCurrentUser-2.0.3.1.exe --w --q CMD.exe /c "reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\settings /v NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK /t REG_DWORD /d 0 /f"

and

action uses wow64 redirection false

delete __createfile
delete wizardedit.reg

createfile until @end_create_reg_file
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings]
"NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK"=dword:00000000
@end_create_reg_file

move __createfile wizardedit.reg

prefetch RunAsCurrentUser-2.0.3.1.exe.tmp sha1:fd0c5a7bec0e9a4741bbe1804e9c4a62e42d6d25 size:149903 http://hexen.solita.fi:52311/Uploads/fd0c5a7bec0e9a4741bbe1804e9c4a62e42d6d25/RunAsCurrentUser-2.0.3.1.exe.tmp sha256:2c4043b7ac0b0668137bd9bd5778075d3389c1f6b71d0ab2ae8904fd87c3a4b7
extract RunAsCurrentUser-2.0.3.1.exe.tmp

run __Download\RunAsCurrentUser-2.0.3.1.exe --w --q regedit /s "wizardedit.reg"

I made this second one with registry wizard and added RunAsCurrentUser.

Both tasks seem to run without errors and show as Completed, but nothing is changed. Any ideas?

To manipulate the current user’s key you don’t need to run as the user, you can get their key into the HKEY_USERS hive with the relevance current user key https://developer.bigfix.com/relevance/reference/registry.html#current-user-key-of-registry-registry-key

This will allow you to just manipulate the registry on their behalf. Remember HKCU is just a view into the HKU hive.

I managed to get it to work with the solution in this thread (before you replied):

Could you give me an example how to use the “current user key”? I’m still not fully familiar with the relevance language.