If you want to dont login to ur compputer, here is a solution, that if someone enters your computer and does not kill the task, the computer will stop
- right click to the startup.vbs and "open with" - notepad
- paste the location of the shutdown.bat file into [shutdown.bat] (e.g C:\User\User\Desktop\shutdown.bat) save it (Crl+s)
- cut startup.bat (Ctrl+x), press Win+r, write shell:startup - enter, and paste it there
- open the task manager, scroll down and find "Microsoft ® Windows Based Script Host" kill it(bottom right corner "end task")