Jump to content

Scheduled Login To Windows?


 Share

Recommended Posts

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...