8
2
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
Question:
What command line can help me to do this? (cmd or powershell or both)
How to: Use a Script to Change Registry Permissions from the Command Line – DavidPostill – 2016-07-08T17:43:36.603
Hi DavidPostill. I read the content of the link, and honestly did not understand (or microsoft not explain well or I'm too stupid). So, I thank you that you put an example according to my case, to select your answer as correct. – BrianC – 2016-07-08T18:02:06.370