PC Review


Reply
Thread Tools Rate Thread

disable/enable keyboard

 
 
Sameh Ahmed
Guest
Posts: n/a
 
      22nd Apr 2005
Hello there
is there a way through WMI or else, to disable/enable a device?
lets say the keyboard for instance?



 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
      22nd Apr 2005
Sameh Ahmed wrote:

> Hello there
> is there a way through WMI or else, to disable/enable a device?
> lets say the keyboard for instance?

Hi

Nothing builtin for keyboard blocking in WMI/WSH (VBScript/JScript).

You can disable mouse and keyboard input using e.g. the AutoItX
component from a VBScript (you need to register a DLL on the target
computer), or you can use AutoIt to create an exe file that does the
job.

AutoIt/AutoItX is free and can be found here:
http://www.hiddensoft.com/autoit3/index.php


To disable mouse and keyboard input:

Set oAutoIt = CreateObject("AutoItX.Control")
oAutoIt.BlockInput "on"

Input will be automatically enabled when the script closes if you don't
issue an off command.

This function will have different effects depending on the operating
system used:.

Windows 95 No effect.
Windows 98 User input is blocked but AutoIt is also unable to simulate input.
Windows NT 4 (Without ServicePack 6) No effect.
Windows NT 4 (With ServicePack 6) User input is blocked and AutoIt can
simulate input.
Windows 2000/XP User input is blocked and AutoIt can simulate input.




--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
Sameh Ahmed
Guest
Posts: n/a
 
      24th Apr 2005
was hoping for something built in to use on all domain machines
Thanks a lot for your time
Regards
Sameh
"Torgeir Bakken (MVP)" <Torgeir.Bakken-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sameh Ahmed wrote:
>
>> Hello there
>> is there a way through WMI or else, to disable/enable a device?
>> lets say the keyboard for instance?

> Hi
>
> Nothing builtin for keyboard blocking in WMI/WSH (VBScript/JScript).
>
> You can disable mouse and keyboard input using e.g. the AutoItX
> component from a VBScript (you need to register a DLL on the target
> computer), or you can use AutoIt to create an exe file that does the
> job.
>
> AutoIt/AutoItX is free and can be found here:
> http://www.hiddensoft.com/autoit3/index.php
>
>
> To disable mouse and keyboard input:
>
> Set oAutoIt = CreateObject("AutoItX.Control")
> oAutoIt.BlockInput "on"
>
> Input will be automatically enabled when the script closes if you don't
> issue an off command.
>
> This function will have different effects depending on the operating
> system used:.
>
> Windows 95 No effect.
> Windows 98 User input is blocked but AutoIt is also unable to simulate
> input.
> Windows NT 4 (Without ServicePack 6) No effect.
> Windows NT 4 (With ServicePack 6) User input is blocked and AutoIt can
> simulate input.
> Windows 2000/XP User input is blocked and AutoIt can simulate input.
>
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scr...r/default.mspx



 
Reply With Quote
 
New Member
Join Date: Mar 2011
Posts: 2
 
      13th Mar 2011
To disable / enable the mouse and keyboard via batch file, see this thread:
http://www.thedecoderwheel.com/?p=898

Last edited by eroberts; 15th May 2011 at 12:27 PM..
 
Reply With Quote
 
New Member
Join Date: Mar 2011
Posts: 2
 
      3rd May 2011
And for disabling the mouse / keyboard while using MDT2010 -- I am working on MDT2010 training videos at the link below and will be showing how to automatically prevent users from using the mouse and keyboard during deployment.

http://www.thedecoderwheel.com/?page_id=1126
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
on-screen keyboard - disable/enable =?Utf-8?B?dmFpbmFuZ2Vs?= Windows Vista General Discussion 13 29th Mar 2008 04:06 AM
Can you enable/disable macro keyboard shortcuts in excel 2003? =?Utf-8?B?QnVybmluYXRvcjIwMDA=?= Microsoft Excel Misc 4 18th Sep 2007 03:48 PM
Disable/enable keyboard Fabio Dag Microsoft Windows 2000 Hardware 0 17th Feb 2004 11:14 AM
disable or enable the CD-RW Justin Windows XP General 4 4th Oct 2003 04:55 PM
Keyboard-how to enable & disable CC Windows XP Basics 3 29th Aug 2003 04:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:55 AM.