Login Process

E

Eric

Hello,

I am trying to "write" a script to login automatically on a WS at specific
time to run specific tasks.
The problem is that I am not sure where to place my script (exe file). I
tried to create a service but it does not work.
The script is supposed to wait for the login screen then type the username,
the password and then ENTER.
For this to work I guess that my little script should be loaded before the
login box.

Any idea/suggestion?

Where is the login box loaded from? Could maybe someone explain the process?

Thank you.

Eric.
 
P

Pegasus \(MVP\)

Eric said:
Hello,

I am trying to "write" a script to login automatically on a WS at specific
time to run specific tasks.
The problem is that I am not sure where to place my script (exe file). I
tried to create a service but it does not work.
The script is supposed to wait for the login screen then type the username,
the password and then ENTER.
For this to work I guess that my little script should be loaded before the
login box.

Any idea/suggestion?

Where is the login box loaded from? Could maybe someone explain the process?

Thank you.

Eric.

Place your script into the "Startup" subfolder of the "All Users" or
"Eric" profile folder.
 
E

Eric

Pegasus,

This will not work since items in the startup folders are run after login
in...

Thanks.

Eric.
 
P

Pegasus \(MVP\)

If you want an automatic logon process then you need to
preset the account/password by running this command
from a Command Prompt:
control userpasswords2

If the account is variable then a registry hack invoked
by a scheduled job (to run at boot time) might do it on
a Win2000 PC. The hack is described here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;310584
I do not know if this works on WinXP PCs.
 
D

Doug Knox MS-MVP

It works on XP, as well. There is one security concern, the password is stored in plain text.

The entire process could be scripted. The first script would:

1) Make the necessary Registry changes for autologon
2) Reboot the system

The second script would:

1) Delete the password stored from the Registry
2) Perform the desired tasks
3) Optionally reboot the system or log off.
 
E

Eric

I will try it ..

Thank you.

Eric.


Pegasus (MVP) said:
If you want an automatic logon process then you need to
preset the account/password by running this command
from a Command Prompt:
control userpasswords2

If the account is variable then a registry hack invoked
by a scheduled job (to run at boot time) might do it on
a Win2000 PC. The hack is described here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;310584
I do not know if this works on WinXP PCs.
 
E

Eric

Doug,

Where would I load the first script? It has to be loaded before the logon
process.

Thank you.

Eric.


It works on XP, as well. There is one security concern, the password is
stored in plain text.

The entire process could be scripted. The first script would:

1) Make the necessary Registry changes for autologon
2) Reboot the system

The second script would:

1) Delete the password stored from the Registry
2) Perform the desired tasks
3) Optionally reboot the system or log off.

--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart
Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
 
D

Doug Knox MS-MVP

The first script, in my scenario, would be run as a Scheduled Task, whenver you wanted it. The whole process from there would be automatic. The second script could be run from the Startup folder of the user you set to autologon, or as a Scheduled Task that runs when that user logs on.
 

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