Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: A batch file that can lock the computer?  (Read 3124 times)

0 Members and 1 Guest are viewing this topic.

Kirbya

  • Guest
A batch file that can lock the computer?
« on: August 17, 2007, 06:25:39 PM »
Is there a way to lock the computer through a batch file? But I need a way to unlock it too besides restarting.

Dark Blade

  • Forum Gaming Master


  • Adviser

    Thanked: 24
    • Yes
  • Experience: Experienced
  • OS: Windows XP
Re: A batch file that can lock the computer?
« Reply #1 on: August 17, 2007, 07:13:33 PM »
What do you mean by lock? Putting it on standby (if it is on standby, if returns to the Log On menu without actually logging off your account, and you would still need to enter the password if you have one)?

If so...

rundll32.exe user32.dll, LockWorkStation

Kirbya

  • Guest
Re: A batch file that can lock the computer?
« Reply #2 on: August 17, 2007, 07:21:45 PM »
Thanks for the reply, you got to what I was looking for.