Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to lock keyboard/mouse during workstation deployment?

Updated: 21 May 2010 | 10 comments
weedee's picture
+1 1 Vote
Login to vote
This issue has been solved. See solution.

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?

Comments

weedee's picture
12
Nov
2009
0 Votes 0
Login to vote

I attempted to prevent

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?

ianatkin's picture
12
Nov
2009
0 Votes 0
Login to vote

how about a different approach?

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./
 

Ian Atkin, Senior Developer for the ICT Support Team, Oxford University, UK

Connect Etiquette: "Mark as Solution" those posts which resolve your problem, and give a thumbs up to useful comments, articles and downloads&

weedee's picture
12
Nov
2009
0 Votes 0
Login to vote

Hi Ian,Thanks for your

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.

bhawver's picture
12
Nov
2009
0 Votes 0
Login to vote

What about...

What about changing the Ctrl + Alt + Del window instead of the background?

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

Brian Hawver
Systems Engineer
Yaskawa America, Inc.

Connect Etiquette: "Mark as Solution" those posts which resolve your problem, and give a thumbs up to useful comments, articles and downloads.

weedee's picture
12
Nov
2009
0 Votes 0
Login to vote

Hi bhawver, That's very cool

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

bhawver's picture
12
Nov
2009
0 Votes 0
Login to vote

Missed my point.

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.

Brian Hawver
Systems Engineer
Yaskawa America, Inc.

Connect Etiquette: "Mark as Solution" those posts which resolve your problem, and give a thumbs up to useful comments, articles and downloads.

riva11's picture
12
Nov
2009
3 Votes +3
Login to vote

Lock workstation script

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

weedee's picture
12
Nov
2009
0 Votes 0
Login to vote

Hi riva11, I don't need to

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.

ianatkin's picture
12
Nov
2009
2 Votes +2
Login to vote

another sly method then...

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./

Ian Atkin, Senior Developer for the ICT Support Team, Oxford University, UK

Connect Etiquette: "Mark as Solution" those posts which resolve your problem, and give a thumbs up to useful comments, articles and downloads&

weedee's picture
20
Nov
2009
0 Votes 0
Login to vote

Thank you Ian. Your solution

Thank you Ian.

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

Thank you all.