Hi!
I have created a script for windows to add a little more security to your computer!
This script force closes explorer.exe and then pops up a cmd window asking for a username and password. Now your thinking. Can I just task manager start a cmd window and type start explorer.exe? No in the background the script constantly closes the task manager process. Now how does this add security? Well simply open your run box after downloading the script (Windows key + r) and type shell:startup simply place a COPY of lock.bat and then leave the original files somewhere on your pc. Now when ever your pc starts up it will automatically runs the script making it harder for people to get access by guessing the password. You can also put a copy of lock.bat on your desktop and then use it instead of the standard windows lock just easier to log in and out!
Here is the source code!
Code for lock.bat
taskkill /f /im explorer.exe
@echo off
title LOCKDOWN INITIATED
cls
:1
echo ===LOGIN===
echo.
echo Please enter the username!
echo.
echo ===========
set /p selection=Username:
if %selection%==USERNAME HERE goto a
if not %selection%==USERNAME HERE goto 1
:a
echo ===LOGIN===
echo.
echo Please enter the password!
echo.
echo ===========
set /p selection=Password:
if %selection%==PASSWORD HERE goto b
if not %selection%==PASSWORD HERE goto 1
:b
title Login Succesfull
cls
echo Loging in to pc!
echo.
timeout 3 > nul
echo Welcome %username%
start unlock.bat
Code for prevent.bat:
:a
taskkill /f /im taskmgr.exe
goto a
code for unlock.bat
@echo off
start explorer.exe
This script all together is 35 lines of code in the bat format!