timbo343 Posted June 18, 2007 Posted June 18, 2007 Im trying to disable sticky keys via the software restriction policy in group policy. Ive found what you have to change in the registry, but how do you change a REG_SZ value for Flags from 510 to 506 or just disable this part of the registry?
mrforgetful Posted June 18, 2007 Posted June 18, 2007 I'd have thought this would be against regulations on Disability access?
seanmh Posted June 18, 2007 Posted June 18, 2007 I use Kixtart for this purpose and include these in my script, when each user logs in. $RC=WRITEVALUE("HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys","Flags","506","REG_SZ") $RC=WRITEVALUE("HKEY_CURRENT_USER\Control Panel\Accessibility\HighContrast","Flags","122","REG_SZ") $RC=WRITEVALUE("HKEY_CURRENT_USER\Control Panel\Accessibility\MouseKeys","Flags","58","REG_SZ") $RC=WRITEVALUE("HKEY_CURRENT_USER\Control Panel\Accessibility\Togglekeys","Flags","58","REG_SZ") As I know they're a pain in the wotsits if the kids "accidently" activate these options and seeing as we don't really have anyone who uses these options then I turn them off. [please use CODE and QUOTE tags in the future - thanks - tarquel]
timbo343 Posted June 18, 2007 Author Posted June 18, 2007 nah not really, its only sticky keys been disabled, plus its a PITA.
tomscaper Posted June 18, 2007 Posted June 18, 2007 i am looking to disable sticky keys too, because the kids are constantly using Alt + Left Shift + Prnt Screen to change the screen to high contrast. As for disability access we would set a seperate group up where this wasnt disabled but i cant work out how to do this, so if you can explain what needs altering would be grateful. Tom
forsythe_99 Posted June 20, 2007 Posted June 20, 2007 Im trying to disable sticky keys via the software restriction policy in group policy. Ive found what you have to change in the registry, but how do you change a REG_SZ value for Flags from 510 to 506 or just disable this part of the registry? Could someone tell me how to go about doing this please? I've been trying to disable Sticky Keys on my users PC's without success and its driving me mad now What rule do I need to add? Cheers
mattx Posted June 20, 2007 Posted June 20, 2007 Use AutoIT's Regwrite function - EG: ; Write a single REG_SZ value RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey", "REG_SZ", "Hello this is a test") If someone provides a link or the actual reg keys that need changing / writing I'll do the script tomorrow if I get time. I'm off this afternoon..... [ Or just use seanmh's kix script ]
ChrisH Posted June 20, 2007 Posted June 20, 2007 'Disable Sticky Keys Set ObjShell = Wscript.CreateObject("Wscript.Shell") RegKey = "HKCU\Control Panel\Accessability\Stickykeys\" WSHShell.RegWrite regkey & "Flags","506","REG_SZ" Vbscript version. 2
forsythe_99 Posted June 20, 2007 Posted June 20, 2007 I found this administrative template but it doesn't work, does anyone know what I can add to it to make it work? Cheers CLASS USER CATEGORY "Custom Template" CATEGORY "Status of Stickies" KEYNAME "Control Panel\Accessibility\StickyKeys" POLICY "Turned on" VALUENAME "Flags" VALUEON "506" VALUEOFF DELETE END POLICY END CATEGORY; "Status of Stickies" END CATEGORY; "Custom Template"
mattx Posted June 20, 2007 Posted June 20, 2007 I was bored: ; AutoIt Version: 3.2.0.1 ; Language: English ; Platform: WinXP ; Author: Matt Marsh - [email protected] ; Script Function: Disable Sticky Keys ; Version: 1 ; Date: June 2007 RegWrite("HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys", "Flags", "REG_SZ", "506") If you want this to run at startup it may be worth sticking in a RunAsSet command. EG: RunAsSet("administrator", @ComputerName, "PASSWORD") RunAsSet() Compile as an .exe and stick it in your logon script or startup folder.... All this talk of sticky keys has made me want to go and play chicken invaders now..... http://www.download-free-games.com/freeware_games/chicken_invaders.htm Ooo, just been playing and if you set it to 26 it pretty much disables everything sticky related..... :rr:
forsythe_99 Posted June 21, 2007 Posted June 21, 2007 I found this administrative template but it doesn't work, does anyone know what I can add to it to make it work? Cheers CLASS USER CATEGORY "Custom Template" CATEGORY "Status of Stickies" KEYNAME "Control Panel\Accessibility\StickyKeys" POLICY "Turned on" VALUENAME "Flags" VALUEON "506" VALUEOFF DELETE END POLICY END CATEGORY; "Status of Stickies" END CATEGORY; "Custom Template" Anyone able to help?
mattx Posted June 21, 2007 Posted June 21, 2007 Why not use one of the other 3 solutions ? You have a kix solution, an AutoIT solution and a vbscript solution....
forsythe_99 Posted June 21, 2007 Posted June 21, 2007 Why not use one of the other 3 solutions ? You have a kix solution, an AutoIT solution and a vbscript solution.... Because I have only just started learning this stuff and I don't know how to use the other 3 solutions
ChrisH Posted June 21, 2007 Posted June 21, 2007 Put the vbscipt version in a text file and save it as whateveryouwant.vbs. Then in group policy add it as a logon script.
mattx Posted June 21, 2007 Posted June 21, 2007 I tried to upload the .exe file but the site won't let you upload .exe files - still you can easily compile it yourself with the AutoIT compiler: http://www.autoitscript.com/autoit3/downloads.php
Busybub Posted June 22, 2007 Posted June 22, 2007 'Disable Sticky Keys Set ObjShell = Wscript.CreateObject("Wscript.Shell") RegKey = "HKCU\Control Panel\Accessability\Stickykeys\" WSHShell.RegWrite regkey & "Flags","506","REG_SZ" Vbscript version. Chris, don't suppose you have one which deletes the entire accessibility registry entry?
ZeroHour Posted March 4, 2008 Posted March 4, 2008 This is now in the wiki in vbscript form. Goto: http://www.edugeek.net/wiki/index.php/Disable_Sticky_Keys_and_High_Contrast 1
6Foot2 Posted March 20, 2008 Posted March 20, 2008 I am updating a Dell image at the moment. I have taken this "opportunity" to deny the Students security group access to the Registry keys: HKCU\Control Panel\Accessability\Stickykeys\ and HKCU\Control Panel\Accessability\HighContrast It didn't work! So I have taken the ticks out in Contol Panel/Accessibility Options [Keyboard/Display/General] We have no users in school at the momnet who would need to use High Contrast so this solution suits me as I am updating the station images anyway.
timbo343 Posted March 20, 2008 Author Posted March 20, 2008 I have some reg edits if you want them? for sticky keys and high contrast. They take a second to apply
6Foot2 Posted March 20, 2008 Posted March 20, 2008 I have some reg edits if you want them? for sticky keys and high contrast. They take a second to apply @timbo343: I will give them a try: I have more than one type of station to update and as we know each needs its own image. Thanks.
timbo343 Posted March 20, 2008 Author Posted March 20, 2008 both high contrast and sticky key patchPatch to disable stickykeys.zip 1
Ryan Posted March 20, 2008 Posted March 20, 2008 This is now in the wiki in vbscript form. Works lovely. May update it to include FilterKeys and ToggleKeys though...
TheScarfedOne Posted March 29, 2008 Posted March 29, 2008 This has just made my day... it has become the new game of our students to change the screens to high res and put sticky keys on! We spoilt their fun with the screen rotation patch for intel gfx. Thanks guys
rogkicksass Posted April 14, 2010 Posted April 14, 2010 That Administrative Template doesn't work because it's wrong. Try this; CLASS USER CATEGORY "Additional Settings" POLICY "Restrict Use of Sticky Keys" EXPLAIN "This policy disables the use of Sticky Keys" KEYNAME "Control Panel\Accessibility\StickyKeys" VALUENAME "Flags" VALUEON "511" VALUEOFF "510" END POLICY END CATEGORY Hope this helps ya.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now