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

This entry was posted in C#.Net, General Computing and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *