ILT – Command to lock a windows computer

19/03/2013

How to program your custom keyboard key to lock your computer?
How to programmatically lock your computer?
How to lock your computer from the run dialog box?
How to lock your computer form DOS?

Answer:
Just use following command
rundll32.exe user32.dll, LockWorkStation

You can use this on the command prompt, the run dialog or even from within your code.

Menol
ILT

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: