Link to home
Start Free TrialLog in
Avatar of nzfire
nzfire

asked on

Auto Restart and Login to Windows XP using batch or command

Hi All,

I would like to reboot the pc and login to the domain at scheduled intervals. The pc is on a domain and I know how to reboot the pc, but the loggin in is a different story. I could have autoadminlogon in the registry, but for security reasons I would prefer to login without autoadminlogin.

I know that there are lots of third party tools out there that would work, but I would like something that I could manipulate in a way like a .bat file.

Thanks,

Sean
Avatar of ded9
ded9
Flag of India image

Avatar of sajirochira
sajirochira

If you save the passwords in batch file, then you are in higher risk, as the file is more accessible to others than registry.

You can try to call some auto-login thirdparty programs to login from the batch file. But the bat file will be executed only after the user logon. So, you have to convert the .bat file to service using the AutoExnt utility included in the Resource Kit. (you can see the details at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243486

Or, if you are a programmer, try to write a system service that logon automatically. (I think it is possible.)

HTH,
Saji R
Hi Sean,
I will post my reply in parts as I am getting "Question not found" error when I post complete reply.
Engineer_Dell


You can try making a Bat file,
1. Download the file: http://www.maxlin.ca/tractranstart.zip
2. Extract the file tractranstart.bat to C:\Windows\ (WinXP) or C:\WINNT\ (Windows 2000)
3. Click your start menu > Run... ( or press Windows Key + R)
4. In the Run dialog, type "control userpasswords2" without the quotes.
5. Uncheck the box "Users must enter a user name and password to use this computer."
6. Click OK and you will be prompted to enter a User name and Password (the user you want to logon by default).
7. Restart the computer and you should be logged in to the default user. Download and run the program: http://www.maxlin.ca/startup.exe
9. Click the tab "Startup (user)"
10. Right-click in the white area and select "New..."
11. Click "Browse Files..."
12. Navigate to the location where you extracted tractranstart.bat and click "Open". (For XP, this should be C:\WINDOWS\tractranstart.bat
while for 2000 it should be C:\WINNT\tractranstart.bat)
13. You should see a tractranstart item in the list. Close the program and restart.
Done.
Regards,
Engineer_Dell
ASKER CERTIFIED SOLUTION
Avatar of engineer_dell
engineer_dell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nzfire

ASKER

Hi All,

Thanks for your posts. It seems that this is going to be the easy way to do it and just lock the door to the room!!! Good security huh ;)

Thanks again
Hello NZFire,

Yeah, I agree with you :)

Keep Smiling,

Engineer_Dell