I see the post in superuser and I have a similar case, but with a small difference.
I created a reg key.
"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\wscript.exe"
And the content target: /windows/system32/wscript.exe
And I need to block this key permanently (or any other key that I want to create), to prevent accidental or intentional deletion or modification of any malware
What command line can help me to do this? (cmd or powershell or both)