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?
Logging into Windows
Moderator: DosItHelp
Re: Logging into Windows
Dunno. Search for Wake On LAN and psExec.
Regards
aGerman
Regards
aGerman
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
Re: Logging into Windows
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
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
jeb
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