Step 1 – Open a DOS promot for launching a special command line. One simple way you can do it would be by clicking Start/Run, typing CMD.
Step 2 – EnterĀ the command line for locking your station:
rundll32.exe user32.dll, LockWorkStation
and your computer will be locked.

The
how to unlock ? ?
The information was very useful for me and helped me to develop a small tool which I hope will be very useful in my work.
How to unlock ..?
do yopu think i can make a batch of this?
To unlock the stations just re-enter the username and password for the locked profile, this command is very useful when using remote software when you don’t have other means of locking the station being worked on.
will it work in windows 7??…if not wt to do for windows 7???
The application will work the method with the bat file depending on the rights on the system.
rundll32.exe is a windows-based dynamic library link…of course it will work on windows
…how to unlock?…
press CTRL ALT DEL and log in just like normal…. :0)
windows key + l also works and is much faster and easier