Re: Auto-login menu in XP then lock the computer

T

TommyZ

I would like to take this one step further. How can I have windows
auto-login then lock the computer. I want to do this so the computer
can bootup on it's own, login, then lock itself, all without user
intervention.

Thank you,
Tom
No need for TweakUI. Click Start, Run and enter CONTROL
USERPASSWORDS2 Uncheck Users must enter a username and
password.......... Click OK and follow the prompts.
 
W

WTC

This might work if you run this last in Run key located in the registry

HKCU\Software\Microsoft\Windows\CurrentVersion\Run
HKLM\Software\Microsoft\Windows\CurrentVersion\Run

%windir%\system32\rundll32.exe user32.dll,LockWorkStation
 
T

TommyZ

Can you elaborate a little? I am new at messing with the registry and
I don't want to mess it up.

Thank you,
Tom
 
W

WTC

I have tried this on my machine and it works.

Open Notepad and copy the following text
---------------------------------------

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Lock Computer"="c:\\windows\\system32\\rundll32.exe
user32.dll,LockWorkStation"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"Lock Computer"="c:\\windows\\system32\\rundll32.exe
user32.dll,LockWorkStation"
----------------------------------------

if windows is not installed on c:\windows change the installation folder.

save the file as LockComputer.reg

double click the file to import to the registry.

Post back with your results

Good Luck
 
T

Torgeir Bakken \(MVP\)

Some comments inline:
I have tried this on my machine and it works.

Open Notepad and copy the following text
---------------------------------------


Add the following line at the top of the file:

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Lock Computer"="c:\\windows\\system32\\rundll32.exe
user32.dll,LockWorkStation"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"Lock Computer"="c:\\windows\\system32\\rundll32.exe
user32.dll,LockWorkStation"
----------------------------------------

There is no need to put it in the HKEY_CURRENT_USER registry branch,
the HKEY_LOCAL_MACHINE Run part will always be run for every user.

(and to TommyZ: the lines above wrap in the news reader, the
"Lock Computer" part and user32.dll,LockWorkStation" needs to be on
the same line, with a space between rundll32.exe and user32.dll).

if windows is not installed on c:\windows change the installation folder.

As the system32 folder is in the path, you really don't need to add the
path before rundll32.exe (but, yes, it is a bit "safer" to do it).

So this registry file should also work fine:
 

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

Similar Threads


Top