Jump to content

Recommended Posts

Posted

We have one of the IT Exams coming up with a rolling program of around 30 kids in each of the 3 IT rooms throughout the day, each needing a fresh user account. To try and save the sanity of both myself and the Exams officer to not have to either login as each of the exam accounts or run around after the invigilators who have got confused I had a crazy idea last night that there may be away to set up a script to login a room at a time. Accounts could be created, script set up matching login with a station from a file and then each exam script runs and huzzah all done.

 

BUT I'm not sure if this is even possible! Anyway know either way?

 

Ta

Posted

Hmm,

 

there's a little app called logon.exe Logon command line utility

 

 

and then us psExec to remotely auto logon all the PC's via a script.

 

eg a batch file with the folowing commands..

 

psexec \\server1 Logon.exe -u Username -p yourpassword

psexec \\server2 Logon.exe -u Username -p yourpassword

psexec \\server3 Logon.exe -u Username -p yourpassword

 

although I don't know if it'd deal with CTrl-Alt-del, but probably worth a go...

Posted

Yes, script attached. Rename it to a .bat file, create a file with all your machine names in, and run it with this as an argument.

 

(disclaimer: the usual I accept no responsibility or warranty express or implied, it worked for me, etc, etc...)

AutoLogon_gen.txt

  • Thanks 1
Posted

Ohhh ta, gives me some possibilities. Have to do some testing & I will let you all know. Complications are it has to be different user accounts for each student each time so I may be able to adapt powdarmonkey's solution or use Domino's as that should be easily able to be set up in excel & transffered to a batch file.

 

Ta again

Posted

You could use the tokens magic in the 'for' command to put the username and password into the text file as well, something like

 

machine,username,password

machine2,usrname2,password2

 

Saying 'help for' at a command prompt explains all.

Posted

Bummer. No go on either of them so far. The Logon.exe is only to unlock machines, got it running all great but it tells me noone is logged on so can't do anything. Tried manually entering the registry information from the script as a test and I think CC3 stuff block the autologon from working.

 

Back to the drawing board.

Posted
Tried manually entering the registry information from the script as a test and I think CC3 stuff block the autologon from working.

 

Back to the drawing board.

 

Ah, didn't realise you were an RM house. Doesn't CC3 have something to do this already? (guess not, or you wouldn't be asking.)

Posted

ta markcuk, same script as powdars.

 

There is a way to set a staition to logon on automatically but that is for a kiosk type station. You have to set up a whole workstation type for each different logon which I wouldn't relish for over 200 users! Ohh well, the search continues ;)

Posted
Bummer. No go on either of them so far. The Logon.exe is only to unlock machines, got it running all great but it tells me noone is logged on so can't do anything. Tried manually entering the registry information from the script as a test and I think CC3 stuff block the autologon from working.

 

Back to the drawing board.

 

Haven't used CC3 but one reason why some of the scripts will fail is if you have a group policy saying "don't show last logged on username"

 

machine startup scripts run after group policy application so if you can't turn off the GPO which is taking out the defaultusername value then you can push in the username with a startup script; the script basically does what powdarrmonkey has given you but doesn't do a reboot.

Posted
Huzzah. Of course if I can change all the other registry elements using the batch file I can change the one stating which gina.dll is used. So added that to the file and so far have managed to make 5 stations all change to the same autologon & then return to normal!! Yay me :) So I shall carry on & try to do the different user for each station and post results!
Posted
Huzzah. Of course if I can change all the other registry elements using the batch file I can change the one stating which gina.dll is used. So added that to the file and so far have managed to make 5 stations all change to the same autologon & then return to normal!! Yay me :) So I shall carry on & try to do the different user for each station and post results!

 

Well done that man - good piece of work:)

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



×
×
  • Create New...