+ 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

    Join Date
    Dec 2005
    Location
    East Sussex
    Posts
    2,589
    Thank Post
    135
    Thanked 225 Times in 175 Posts
    Rep Power
    95

    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. IDG Tech News

  3. #2

    Domino's Avatar
    Join Date
    Oct 2006
    Location
    Bromley
    Posts
    3,224
    Blog Entries
    4
    Thank Post
    100
    Thanked 670 Times in 476 Posts
    Rep Power
    240
    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...

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

  5. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 774 Times in 647 Posts
    Rep Power
    168
    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

  6. #5

    Join Date
    Dec 2005
    Location
    East Sussex
    Posts
    2,589
    Thank Post
    135
    Thanked 225 Times in 175 Posts
    Rep Power
    95
    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,855
    Thank Post
    412
    Thanked 774 Times in 647 Posts
    Rep Power
    168
    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

    Join Date
    Dec 2005
    Location
    East Sussex
    Posts
    2,589
    Thank Post
    135
    Thanked 225 Times in 175 Posts
    Rep Power
    95
    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,855
    Thank Post
    412
    Thanked 774 Times in 647 Posts
    Rep Power
    168
    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
    520
    Thank Post
    24
    Thanked 48 Times in 44 Posts
    Rep Power
    31
    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. #10

    Join Date
    Dec 2005
    Location
    East Sussex
    Posts
    2,589
    Thank Post
    135
    Thanked 225 Times in 175 Posts
    Rep Power
    95
    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

  12. #11

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,117
    Blog Entries
    2
    Thank Post
    111
    Thanked 513 Times in 444 Posts
    Rep Power
    114
    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.

  13. #12

    Join Date
    Dec 2005
    Location
    East Sussex
    Posts
    2,589
    Thank Post
    135
    Thanked 225 Times in 175 Posts
    Rep Power
    95
    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!

  14. #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
    37
    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 Networks
    Replies: 8
    Last Post: 23rd March 2009, 02:54 PM
  2. Remote automatic login
    By sparkeh in forum Windows
    Replies: 5
    Last Post: 18th December 2008, 12:15 PM
  3. 2008 TS Remote Apps - 60 second login
    By gjames in forum Windows Server 2008
    Replies: 11
    Last Post: 11th November 2008, 10: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, 10: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
  •