Home > Windows > Different Ways to Lock Windows

Different Ways to Lock Windows


It all began the day my computer keyboard got busted. Only the windows icon on my keyboard was gone,I was not able to lock my PC no matter how many times i rammed it :P. Thats when i tried to find various ways to lock your PC without relying on the keyboard. You will be surprised to know that there are several ways to lock your Windows computer, but all of them use the same command line. The method you choose is a matter of personal preference.

1. via the keyboard(Obviously)
The easiest way to lock Windows is by simply pressing the Windows logo key and the letter L (for Lock) on a Microsoft Natural Keyboard or any other compatible keyboard that includes the Window key. Doing so will pop up the Unlock Computer Password box.

2. 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 and enter this line as the command line:

rundll32.exe user32.dll, LockWorkStation

Click Next. Name the shortcut whatever you prefer and click Finish. That’s it.

If you’d like to change the icon, just right click the shortcut and go to Properties/Shortcut/Change Icon.

3. via the command line
The above command line can also be used at a DOS prompt to lock your computer. One simple way you can do it would be by clicking Start/Run, typing CMD and then entering the command and pressing Enter.

4. via a bat file
This is similar to a Windows shortcut method. But it’s a DOS version. If you’ve never created a bat (batch) file, but would like to try this method, simply open a new text file (such as with Notepad) and type the following commands:

@echo off
rundll32.exe user32.dll, LockWorkStation
cls

Save the file with a .bat extension, such as Lock.bat, and you’re done. Double click to make the file run.

Important Note : It should go without saying that if you don’t use a password to log on to your computer, then anyone can access your computer and unlock it. If you want to use the lock feature, then set a password by going to User Accounts in the Control Panel and then click Create Password.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: