There may be times when you want your computer to lock automatically after login. Here's a way to get that done.
Add the steps involved:
Open Notepad and copy the following into a new file.
@ECHO OFF ECHO. ECHO Locking screen in 4 seconds. ECHO. TIMEOUT 4 rundll32.exe user32.dll, LockWorkStation |
Save the file and name it LockScreen.bat.
Make sure to set "Save as type:" to All Files! |
Depending on how the script will run, you may want to save it to C:\LockScreen.bat rather than in your user folder. |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|