-1
We have a custom student computer activity monitoring software. I need a batch script to add this program in start up registry so no one can avoid by using safe mode.
I want edit this registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
The default Value is.... Shell= explorer.exe
I want to edit it like.... Shell= explorer.exe,MyApp.exe
Or any other way whatever works.
I tried several codes and asked this this question many times in forums, But never really got a straight solution. Please help me out.
What you could do is write a batch script to run at logoff/shutdown that writes to the RunOnce registry key to run your program but the key name must begin with an asterisk to force it to run even in safe mode. You need to rewrite the key at some point because RunOnce keys are deleted when they are run. – Kinnectus – 2015-03-18T08:21:12.587