- via the keyboard
- via a Shortcut.
If you don't have a keyboard with a Window key or simply don't like the keyboard method, then here's how you can make a desktop shortcut to lock your computer.
Right click an empty area of your desktop.
choose New/Shortcut
enter below line as the command line:
rundll32.exe user32.dll, LockWorkStation
Click Next. Name the shortcut whatever you prefer and click Finish.
That's it.
- via command line
Open the DOS Prompt or Command Prompt.
In Simple Way You can open can open it by Clicking on START –> RUN –> typing CMD.
Type the Command line written below to lock your computer
rundll32.exe User32.dll,LockWorkStation
- via Batch file
Open Notepad
Copy and paste the Below Command line:
rundll32.exe User32.dll,LockWorkStation
Then Save the file as "Lock.bat" (without quotes)
No comments:
Post a Comment