Link to home
Start Free TrialLog in
Avatar of alfatec
alfatec

asked on

Automatic login to multiple computers using the same user

I am an IT administrator working for a school. I often need to login to 20 computers in the lab with the same user and password. I am looking for a way to run a script or command so that this is done automatically! Any ideas would be appreciated.
Avatar of jvuz
jvuz
Flag of Belgium image

You mean local or remote?
Avatar of alfatec
alfatec

ASKER

I mean remote. Basically we have suites of 32 computers and sometimes we have to log on to all the computers to complete some administrative tasks. I would like to log on to 32 computers using the administrator username and password without having to go to each workstation and login.
You can use a tool like PSExec to execute commands remotely against multiple computers, as described here:

http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx

This is limited to command-line utilities, not GUI tools, but if you're looking at ways to automate administration you should be doing most of your work from the CLI anyway.
Avatar of alfatec

ASKER

Not quite what I was looking for. Just needed something that will actually just log the computers on so that we can then visit the suite and all the computers are automatically logged on.
ASKER CERTIFIED SOLUTION
Avatar of dlb6597
dlb6597

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of alfatec

ASKER

Thanks for that DLB will try that first thing tomorrow.
Avatar of alfatec

ASKER

Hey DLB that works a treat. Can now start all my computers in seperate rooms with wake on lan and finally can now log on all computers as any user. This will save me a hugh amount of time as you will probably know when having to log onto hundreds of computers with administrator rights to carry out upgrades and maintenance that only schools get involved in. One last thing and I will put it as a seperate question if you want, could I use the same sort of thing to log a different user onto a seperate computer. I.E. When we do exam classes, we have seperate accounts for each user that only we know the details for so we log the computers on before the user gets in, they then sit at a computer and take the test. So for instance we have 32 computers, i.e. room12-1, room12-2, room12-3 etc and have 32 user accounts, ecdl1, ecdl2, ecdl3, now what would be nice is if I could log ecdl1 onto room12-1, ecdl2 onto room12-2 etc using a script. Cheers.
change your pc.txt file to include username and password:

room12-1,ecdl1,password
room12-2,ecdl2,password
etc...


in do.bat change YOURUSERNAME to %%2 and change YOURPASSWORD to %%3

and change the for command to:
For /f "tokens=1,2,3 delims=," %i in (pc.txt) do call do.bat %i,%j,%k