Page 1 of 1
Logging into Windows
Posted: 09 Jul 2010 06:40
by batchfileman
So I have a program that will send out a .bat file to computers on my domain and execute them once they arrive. I have a single login for all of the computers on my domain that I want to use to login and then run the rest of the batch file.
Is there code that would allow me to login to a machine this way?
Re: Logging into Windows
Posted: 09 Jul 2010 10:17
by aGerman
Dunno. Search for Wake On LAN and psExec.
Regards
aGerman
Re: Logging into Windows
Posted: 09 Jul 2010 10:42
by avery_larry
You can find the reg settings for autologon and import them via a batch file, copy another batch file to the startup folder, reboot using shutdown.exe, and then wipe the autologin reg settings using the batch file you put in the startup folder while calling a 3rd batch file that deletes the 2nd batch file from the startup folder. Could also use the runonce reg key in conjunction with the autologon stuff.
Re: Logging into Windows
Posted: 09 Jul 2010 15:41
by jeb
Hi,
you could use schtasks (exists on Vista, XP, perhaps also on W2000).
Normaly you use it for starting a process (on any computer) at a given time.
But if you set the starttime to 1.1.2000 then it will never start, but you can start it directly with /run.
So you can write
Code: Select all
schtasks /create /s client7 /u jeb /p secret /sc einmal /tn myTask /tr notepad /sd 01/01/2000 /st 00:00:00
schtasks /run /s client7 /u jeb /p secret /tn myTask
jeb