Deployment Solution

 View Only
Expand all | Collapse all

How to lock keyboard/mouse during workstation deployment?

  • 1.  How to lock keyboard/mouse during workstation deployment?

    Posted Oct 07, 2009 05:46 AM
    Hello,

    After Base Image has been deployed to new computer, I use few Run Script tasks in Deployment job. Problem is, that these scripts are executed while Windows sits in login screen.

    I would like to lock keyboard & mouse while these scripts are executed. I tried to run wndctl.exe with -lock command but it didn't worked on logon screen phase.

    Any ideas?


  • 2.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 12, 2009 06:42 AM
    I attempted to prevent mouclass.sys, mouhid.sys, kbdclass.sys and kbdhid.sys from starting under HKLM\SYSTEM\CurrentControlSet\Services but it doesn't seem to work very well.

    Do you perform workstation installations on users place? How you prevent users logging on to their computer during image deployment?


  • 3.  RE: How to lock keyboard/mouse during workstation deployment?

    Trusted Advisor
    Posted Nov 12, 2009 07:19 AM

    If this is to stop users from logging in when the workstation is being deployed, why not try a different approach. In all your base images set the login background to display a warning that the workstation is currently being deployed. This can be configured with the following registry key:

    HKEY USERS\ .DEFAULT\Control Panel\Desktop

    Then when the deployment is complete, you can reset and on your final reboot all will be well.

    Its a softer approach than a full device lock, but its less likely to cause grief and further it won't prevent you from troubleshooting.... ;-)

    Kind Regards,
    Ian./
     



  • 4.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 12, 2009 08:18 AM
    Hi Ian,

    Thanks for your reply.

    Actually, I have implemented that registry value and warning background image on image. I also have Run Script task, which will disable that wallpaper in the end of deployment job.

    You're right, that's softer approach but there are many knucklehead users in our environment who will ignore that warning text :)

    That's why I would like to block all keyboard & mouse input via registry, script or executable until deployment job is completed.


  • 5.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 12, 2009 08:24 AM
    What about changing the Ctrl + Alt + Del window instead of the background?

    http://windowsitpro.com/article/articleid/26848/change-the-windows-logon-screen.html


  • 6.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 12, 2009 09:49 AM
    Hi bhawver,

    That's very cool feature, but it was not what I was looking for.

    I'm trying to prevent user from logging on to system, not make Windows Logon window look cool


  • 7.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 12, 2009 09:57 AM
    Teijo,

    People tend to ignore wallpapers, and I see your dilemma.  The point of my post is if it is an active window that doesn't say press Ctrl + Alt + Delete to logon, it just says "DO NOT USE, MAINTENANCE IN PROGRESS", you might be able to stop a larger percentage of users from logging in.

    I do not know of a way to truly disable the keyboard at the logon screen.  I think as Ian said, that can end up shooting yourself in the foot when you need to troubleshoot why something is not working properly.


  • 8.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 12, 2009 10:48 AM
    Try to simply lock the live session sending a script as described in the following post:
    Lock Workstation During Installation and Deployment

    In any case could be interesting add in this script a command to disable also keyboard / mouse.

    regards,
    Paolo


  • 9.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 12, 2009 01:10 PM
    Hi riva11,

    I don't need to lock workstations, because computers are already in Windows Logon screen, while they're running software installations, which belong to deployment job. Good idea, though.


  • 10.  RE: How to lock keyboard/mouse during workstation deployment?
    Best Answer

    Trusted Advisor
    Posted Nov 12, 2009 02:19 PM
    Don't let Altiris configure the computer to be part of the domain? Deploy the computer as a workgroup machine, deploy additional software and then run a vbscript to join the machine to the domain. After that you can replace the login backdrop and reboot.

    If you're a Novell institution, leave the Novell Client installation as the last job, change the backdrop and reboot.

    Although the keyboard isn't locked, your users will definently not be able to login... ??

    Kind Regards,
    Ian./


  • 11.  RE: How to lock keyboard/mouse during workstation deployment?

    Posted Nov 20, 2009 05:54 AM
    Thank you Ian.

    Your solution was simply the best and easiest way to accomplish this.

    Thank you all.