+ Post New Thread
Results 1 to 11 of 11
Windows Thread, Script that logs in a user in Technical; Does anyone have or know of a script that would log a user onto a pc? This would then enable ...
  1. #1

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15

    Script that logs in a user

    Does anyone have or know of a script that would log a user onto a pc? This would then enable me to log in on lots of computers at the same time rather that going to each machine.

    Thanks

  2. #2

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    11,066
    Thank Post
    1,792
    Thanked 2,184 Times in 1,617 Posts
    Rep Power
    773
    Sounds like a bit of a security risk to me as it would need to know your password.

  3. #3

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,271
    Thank Post
    189
    Thanked 298 Times in 224 Posts
    Rep Power
    130
    Not sure about a script, but iTalc can log in multiple computers at a time, has other great features too.
    iTALC

  4. Thanks to bladedanny from:

    Newton (16th July 2009)

  5. #4

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,235
    Thank Post
    55
    Thanked 278 Times in 186 Posts
    Rep Power
    134
    Again - the slightly fantastic AB Tutor...

  6. #5
    jimofcheeni's Avatar
    Join Date
    Mar 2008
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by SpuffMonkey View Post
    Again - the slightly fantastic AB Tutor...
    Yep, I agree AB Tutor Control is the way to go! Or you can go for iTalc if you don't have the budget for ABT.

  7. #6
    TheLibrarian
    Guest
    Code:
    
    @echo off 
    if "%1" == "" goto end
    for /l %%i in (0,1,30) do (
    start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon /t REG_SZ /d 1
    start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /t REG_SZ /d USERNAME
    start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /t REG_SZ /d DOMAINNAME
    start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword /t REG_SZ /d PASSWORD
    start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonCount /t REG_DWORD /d 1
    start "Restarting %1-%%i" shutdown -r -f -m %1-%%i -t 1
    )
    
    :end
    
    
    rem %1 is the room name %i is the computer number   %1-%1 = machine name

    Our PC naming structure may not work for you with this script, however I am sure you can modify it to suit.

    If you set a logon message to appear after hitting the CTRL-ALT-DEL you will have to do a run round OK'ing that manually but that's it.

  8. #7
    jimofcheeni's Avatar
    Join Date
    Mar 2008
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by TheLibrarian View Post
    [code]
    Our PC naming structure may not work for you with this script, however I am sure you can modify it to suit.

    If you set a logon message to appear after hitting the CTRL-ALT-DEL you will have to do a run round OK'ing that manually but that's it.
    Don't forget, you will need a script that reverses this process too, or scary things will happen!

  9. #8
    TheLibrarian
    Guest
    That's what the autologon count is for.

    Upon reboot that is decremented and when it reaches 0 the credentials are removed.

    However I do have a removal script too, just to be on the safe side.

    Code:
    @echo off
    if "%1" == "" goto end
    for /l %%i in (0,1,30) do (
    echo ===============================================================================
    echo %1-%%i Started
    echo ===============================================================================
    start "%1-%i Removing Autologon" /min reg delete "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon 
    start "%1-%i Removing Autologon" /min reg delete "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName 
    start "%1-%i Removing Autologon" /min reg delete "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword 
    start "%1-%i Removing Autologon" /min reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonCount /t REG_DWORD /d 0
    start "%1-%i Removing Autologon" /min reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /t REG_SZ /d DOMAINNAME
    start "Restarting %1-%%i" /min shutdown -r -f -m %1-%%i -t 1
    echo ===============================================================================
    echo %1-%%i Finished
    echo ===============================================================================
    )
    
    :end

  10. #9
    jimofcheeni's Avatar
    Join Date
    Mar 2008
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by TheLibrarian View Post
    That's what the autologon count is for.
    Sorry, I missed that!

  11. #10
    TheLibrarian
    Guest
    Quote Originally Posted by jimofcheeni View Post
    Sorry, I missed that!
    No problem, better to be safe than sorry.

  12. #11

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    If you use Remote Desktop you can save logon credentials, so you just have to specify the IP or workstation name.

SHARE:
+ Post New Thread

Similar Threads

  1. Individual Smoothwall User Logs
    By farquea in forum Windows
    Replies: 1
    Last Post: 13th July 2009, 12:19 PM
  2. Replies: 16
    Last Post: 27th March 2009, 12:35 PM
  3. Office installs when a new user logs on
    By Maximus in forum Wireless Networks
    Replies: 7
    Last Post: 11th July 2008, 10:54 AM
  4. Ranger - Asks for a driver every time a user logs on
    By FN-GM in forum Network and Classroom Management
    Replies: 14
    Last Post: 8th December 2007, 02:41 PM
  5. Intermittant error when user logs into SIMS
    By Gatt in forum MIS Systems
    Replies: 6
    Last Post: 14th February 2007, 05:52 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
  •