I want my organization to use the default "Print Screen" Windows server 2019 have.
I mean, when user press on the PrtScn button it will display and use the default "Snipping Tool".
I mean, to that tool:
that hidden here:
Now, i want to use batch script (will start at user logon) to check if in HKEY_CURRENT_USER\Control Panel\Keyboard
in PrintScreenKeyForSnippingEnabled the value is set to 0
If yes, then it will change the value to 1
If it's already on 1, then it will do nothing.
So i thought about something like that:
reg query HKEY_CURRENT_USER\Control Panel\Keyboard
if %ERRORLEVEL% EQU 0 goto reg add "HKEY_CURRENT_USER\Control Panel\Keyboard" /v "PrintScreenKeyForSnippingEnabled" /t REG_DWORD /d 1 /f || goto end
But cant get it to work.
Whats wrong with my code?

