Jump to content
Sign in to follow this  
jswizzlez

Scheduled Login To Windows?

Recommended Posts

jswizzlez

I want a script to automatically login to my Windows XP Home account every 3 hours and 20 minutes, run the script, then log out. Is this possible? Sadly, I can't just use control sends.

Edited by jswizzlez

Share this post


Link to post
Share on other sites
layer

seeing that your new, search the forums, read the help file and learn... this isn't a place where people ask for a script unlesss someone is willing to do it..


FootbaG

Share this post


Link to post
Share on other sites
Insolence

He asked whether or not it's possible.

He showed he has some knowledge with controlsend, PLEASE answer the question before you lecture, Layer.


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites
layer

im not even going to fight but that is just my opinion which obviously differs very much then yours... but i dont think thats schedueld login is possible since the script can only run on desktop (i think...)

BTW: wheres your answer? :idiot:

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites
ezzetabi

Since you can't emulate Control Alt Canc the only way I think possible is using Reg editing functions and activate autologon, reboot and you'll be in!

Of course just before rebooting you'll have modified the RunOnce key for starting the second part of the script (via argument (1) ) that deletes autologon keys and logoff when the job is done.

About (1) here and example (untested)

If $CmdLine[0] > 0 Then
   If $CmdLine[1] = '/secondpart' Then
      _SecondPart()
      Exit
   EndIf
EndIf
;First part here 
;autologon keys, runonce keys and rebooting.

Exit
Func _SecondPart()
  ;Second part here
  ;Deleting autologon keys and all the job you need.


   Shutdown(0)
EndFunc

About the autologon keys...

You have to seek the key

HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Where the strings

DefaultUsername will keep your username

AutoAdminLogon will be set to 1

DefaultPassword will keep your password

The password as you can see is readable to everyone can access the registry! So you HAVE TO delete the key when the second part of the script starts!

Edited by ezzetabi

Share this post


Link to post
Share on other sites
jswizzlez

Yea, I don't want to enable autologin though. Forget about it, but thanks for the responses! :idiot:

Share this post


Link to post
Share on other sites
ezzetabi

Most probably there are no other ways to log in. So I can foget about it, but you need using only Control commands...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×