+ Post New Thread
Results 1 to 13 of 13
How do you do....it? Thread, Remote station login script in Technical; We have one of the IT Exams coming up with a rolling program of around 30 kids in each of ...
  1. #1

    TechMonkey's Avatar
    Join Date
    Dec 2005
    Location
    South East
    Posts
    3,286
    Thank Post
    225
    Thanked 405 Times in 302 Posts
    Rep Power
    162

    Remote station login script

    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

  2. #2

    Domino's Avatar
    Join Date
    Oct 2006
    Location
    Bromley
    Posts
    4,126
    Thank Post
    215
    Thanked 1,255 Times in 786 Posts
    Blog Entries
    4
    Rep Power
    505
    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...

  3. #3
    pagelad's Avatar
    Join Date
    Dec 2008
    Location
    Newcastle
    Posts
    181
    Thank Post
    4
    Thanked 15 Times in 13 Posts
    Rep Power
    14
    You could just take the cntrl+alt+del off for the day using the local security policy?

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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...)
    Attached Files Attached Files

  5. Thanks to powdarrmonkey from:

    Phildw (11th March 2014)

  6. #5

    TechMonkey's Avatar
    Join Date
    Dec 2005
    Location
    South East
    Posts
    3,286
    Thank Post
    225
    Thanked 405 Times in 302 Posts
    Rep Power
    162
    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

  7. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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.

  8. #7

    TechMonkey's Avatar
    Join Date
    Dec 2005
    Location
    South East
    Posts
    3,286
    Thank Post
    225
    Thanked 405 Times in 302 Posts
    Rep Power
    162
    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.

  9. #8

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by TechMonkey View Post
    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.)

  10. #9
    markcuk's Avatar
    Join Date
    Sep 2005
    Posts
    586
    Thank Post
    29
    Thanked 60 Times in 55 Posts
    Rep Power
    37
    try these scripts.

    allows you to login same user to all workstations remotely.Just edit the script and run from server

    great for open day etc

    mark
    Attached Files Attached Files

  11. Thanks to markcuk from:

    Phildw (11th March 2014)

  12. #10

    TechMonkey's Avatar
    Join Date
    Dec 2005
    Location
    South East
    Posts
    3,286
    Thank Post
    225
    Thanked 405 Times in 302 Posts
    Rep Power
    162
    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

  13. #11

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Quote Originally Posted by TechMonkey View Post
    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.

  14. #12

    TechMonkey's Avatar
    Join Date
    Dec 2005
    Location
    South East
    Posts
    3,286
    Thank Post
    225
    Thanked 405 Times in 302 Posts
    Rep Power
    162
    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!

  15. #13
    leco's Avatar
    Join Date
    Nov 2006
    Location
    West Yorkshire
    Posts
    2,026
    Thank Post
    595
    Thanked 125 Times in 119 Posts
    Rep Power
    41
    Quote Originally Posted by TechMonkey View Post
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Remote Login Question
    By leon032 in forum Wireless Networks
    Replies: 8
    Last Post: 23rd March 2009, 01:54 PM
  2. Remote automatic login
    By sparkeh in forum Windows
    Replies: 5
    Last Post: 18th December 2008, 11:15 AM
  3. 2008 TS Remote Apps - 60 second login
    By gjames in forum Windows Server 2008
    Replies: 11
    Last Post: 11th November 2008, 09:50 AM
  4. Remote Desktop Double Login
    By mitchell1981 in forum Windows
    Replies: 2
    Last Post: 5th July 2007, 08:17 AM
  5. Login script problem
    By SpuffMonkey in forum Windows
    Replies: 55
    Last Post: 4th February 2006, 09:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •