+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Auto Login - Lock Keyboard and Mouse in Technical; Is it possible to setup a script that allows a PC to automatically logon the domain administrator and disable the ...
  1. #1
    Zoom7000's Avatar
    Join Date
    Feb 2006
    Location
    London
    Posts
    988
    Thank Post
    342
    Thanked 93 Times in 62 Posts
    Rep Power
    34

    Auto Login - Lock Keyboard and Mouse

    Is it possible to setup a script that allows a PC to automatically logon the domain administrator and disable the keyboard and mouse for that session?

    What I want to be able to do is automate some installations and script running. So, the PC would boot up, automatically log in to a domain admin account, disable the keyboard and mouse for the entire session as it automatically runs some scripts and then restarts the PC restoring the keyboard and mouse and normal service.

    Is it possible?

  2. #2
    azrael78's Avatar
    Join Date
    Sep 2007
    Location
    Devon
    Posts
    383
    Thank Post
    47
    Thanked 37 Times in 33 Posts
    Rep Power
    21

    Smile

    Why not simply use RUNAS or an equivalent for this?

    You could then fire off the scripts/install with alt creds while the PC itself can still be used.
    Just out of interest, what is it exactly you are installing or doing?

    Az

  3. #3
    Zoom7000's Avatar
    Join Date
    Feb 2006
    Location
    London
    Posts
    988
    Thank Post
    342
    Thanked 93 Times in 62 Posts
    Rep Power
    34
    Basically, I want to achieve more advanced configurations when deploying RIS images to PCs. I.e. Logging the PC on automatically at the end of the RIS process to clean up files left from the installation of addon packs, driverpacks and installing Network based applications.

    Now, seeing as the PCs sit in classrooms and we might want to rebuild PC's during term time, I don't want the kids getting to PC's with a domain admin account whilst a PC might be rebuilding. At the moment we simply RIS the PCs and then manually cleanup and install network based applications. However, if I could automate this with scripts and automatic logons, but disable the kids from being able to tamper with the PC by disabling the keyboard and mouse whilst it is working, it would be very useful and save a lot of time!

    These are the basic steps I take to create a RIS image:
    Copy Windows XP CD Contents to Hard Drive
    Use nLite to integrate latest updates and application addon packages downloaded from MSFN.org, Wincert.net and RyanVM.net
    Integrate drivers
    Apply patches and tweaks
    Then integrate the necessary RIS files, answer file etc.
    Upload to RIS server

    So, once a PC is built, it is already fully up to date and includes all the necessary applications (Office, CD Burners and other Educational and Academic Software) so there is no need to run updates or installations after the build process has completed.

    However, what I want to be able to do with disabling the keyboard and mouse is use utilities like DriverPacks (driverpacks.net) and install applications that require domain network access. This can only be done once the PC is able to log in to the domain.

  4. #4


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,654
    Thank Post
    253
    Thanked 2,918 Times in 2,149 Posts
    Rep Power
    831
    Quote Originally Posted by Zoom7000 View Post
    However, what I want to be able to do with disabling the keyboard and mouse is use utilities like DriverPacks (driverpacks.net) and install applications that require domain network access. This can only be done once the PC is able to log in to the domain.
    You can disable the keyboard and mouse if you use AutoIt to automated the installation i.e. using the BlockInput command. However, unless you disable task manager, anyone could kill the AutoIt process to gain control of the keyboard/mouse again.

    Regarding apps which require domain access. Wouldn't GPOs and MSI packages be a much better option? Also, DriverPacks can be integrated into the Windows disc too. IIRC, they can be installed at the T-13 stage or via GUIRunOnce once Windows has been installed.

  5. #5
    Cache's Avatar
    Join Date
    Apr 2008
    Location
    Cumbria
    Posts
    1,287
    Thank Post
    479
    Thanked 188 Times in 182 Posts
    Blog Entries
    3
    Rep Power
    67
    Was looking at this and haven't found the exact exercise yet.

    When I went on the 2273 training course I'm sure one of the exercises used for the recovery section was where the keyboard and/or mouse (can't quite remember that) and I think it was removing a registry keys from the CurrentControlSet. Whether you'd want to go down that route and whether it would still allow you to do what you wanted to do afterwards I don't know, but could be an option?

    I'll see if I can find the exercise in my book again.

  6. #6

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    I'm on Arthur's side, but but would auto-logon and locking the desktop at the start of whateve happens work? For XP this command does that:

    C:\WINDOWS\system32\rundll32.exe user32.dll, LockWorkStation

  7. Thanks to PiqueABoo from:

    Zoom7000 (25th August 2009)

  8. #7
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,492
    Thank Post
    10
    Thanked 502 Times in 442 Posts
    Rep Power
    114
    The user can be a local machine administrator, just make sure any shares are configured so they can be accessed by that user. I can't think of anything that would need domain admin rights.

    In fact I suspect you can get quite a lot done with a machine account with startup scripts and a share on the network with domain computer permissions.

  9. #8


    Join Date
    Sep 2008
    Posts
    1,842
    Thank Post
    344
    Thanked 263 Times in 215 Posts
    Rep Power
    121
    A little bit late to join in but one thing to consider is that if you disable the keyboard and mouse you might just get pupils turning off the machine to enable them to use it in a lesson. I think you would be better off locking the machine and show it in use and under repair.

    Still I have tried doing this only to find some little angel to have restarted the machine due to it being locked by the admin and needing to use the computer. Rather than check with me, the teacher had told them to just reboot the machine and use it. Only way it seemed to matter was if a sign was placed saying under repair and even then it was sometimes moved



SHARE:
+ Post New Thread

Similar Threads

  1. [Wanted] Apple Mouse/Keyboard
    By Edu-IT in forum Classified Adverts
    Replies: 2
    Last Post: 3rd February 2009, 03:08 PM
  2. Wireless Keyboard and Mouse - Frustration!
    By thegrassisgreener in forum Hardware
    Replies: 1
    Last Post: 11th August 2008, 12:18 PM
  3. Cordless Keyboard / mouse
    By steve in forum Hardware
    Replies: 8
    Last Post: 31st May 2007, 10:26 PM
  4. auto lock computer after set time
    By timbo343 in forum Windows
    Replies: 13
    Last Post: 30th March 2007, 08:54 AM
  5. Wireless Keyboard and Mouse
    By EL_S in forum Hardware
    Replies: 11
    Last Post: 6th July 2006, 07:32 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
  •