create a batch file to lock computer?

L

liu

Is there a free solution to lock my Windows in one mouse click instead
of control-alt-del then select Lock Computer? Something like a batch
file or some kind of script to do that?

Thanks for the help,
 
O

Olórin

liu said:
Is there a free solution to lock my Windows in one mouse click instead
of control-alt-del then select Lock Computer? Something like a batch
file or some kind of script to do that?

Thanks for the help,

Would Windows key + L do?

Or if you need an icon to click on, create a desktop shortcut that runs this
command:

Rundll32.exe User32.dll,LockWorkStation

and click on that to lock (or switch user).
 
S

sgopus

a very easy solution, hit your windows key and while pressing it, press the L
key.
of course this method does depend on having a keyboard that has the windows
key .
 
B

Bruce Chambers

liu said:
Is there a free solution to lock my Windows in one mouse click instead
of control-alt-del then select Lock Computer? Something like a batch
file or some kind of script to do that?

Thanks for the help,


There at least 4 ways to lock a WinXP (Home or Pro) workstation,
any of which can be used, regardless of domain membership. (In fact,
I'm not aware of any method of locking a computer that's dependent upon
the presence of a domain.):

1) Use the Windows Key + L hot key.

2) You can press CTRL+ALT+DEL and then <ENTER>, once you've turned off
the Welcome Screen and Fast User Switching. (This is the default in a
domain environment, as FUS is contrary to the domain security paradigm.)

3) You can create a desktop shortcut with
"%windir%\System32\rundll32.exe user32.dll, LockWorkStation" in the
target field. (It is case-sensitive, BTW.) You can then assign a
keyboard shortcut.

4) Set a password protected screensaver, and wait the allotted time
without touching the mouse or keyboard.



--

Bruce Chambers

Help us help you:


http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
Joined
Jun 6, 2017
Messages
1
Reaction score
0
Hello everone!!!
I created the locker batch file in windows 8.1.It worked perfectly.I put some of my data in that locker folder.
Now i upgraded to windows 10, now when i click on the locker batch file,it says"windows cannot access the specified device,path or file,you may have not appropriate permissions to access the item".I tried changing permissions,but it didn't worked.I don't want to loose my that data.
plzz plzz help me how to fix this.
 
Joined
Sep 25, 2022
Messages
1
Reaction score
0
Is there a free solution to lock my Windows in one mouse click instead
of control-alt-del then select Lock Computer? Something like a batch
file or some kind of script to do that?

Thanks for the help,
Press and hold down the Windows Key (located betwen the Ctrl and Alt Keys) then press L key.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top