Logging into Windows

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
batchfileman
Posts: 16
Joined: 07 Jun 2010 10:27

Logging into Windows

#1 Post by batchfileman » 09 Jul 2010 06:40

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?

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Logging into Windows

#2 Post by aGerman » 09 Jul 2010 10:17

Dunno. Search for Wake On LAN and psExec.

Regards
aGerman

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

Re: Logging into Windows

#3 Post by avery_larry » 09 Jul 2010 10:42

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.

jeb
Expert
Posts: 1042
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: Logging into Windows

#4 Post by jeb » 09 Jul 2010 15:41

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

Post Reply