Jump to content

Recommended Posts

Posted
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?
Posted

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]

Posted

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

Posted
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

Posted

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 ]

Posted

'Disable Sticky Keys
Set ObjShell = Wscript.CreateObject("Wscript.Shell")
RegKey = "HKCU\Control Panel\Accessability\Stickykeys\"
WSHShell.RegWrite regkey & "Flags","506","REG_SZ"

 

Vbscript version.

  • Thanks 2
Posted

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"

Posted

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:

Posted
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?

Posted
Why not use one of the other 3 solutions ?

You have a kix solution, an AutoIT solution and a vbscript solution.... :roll:

 

Because I have only just started learning this stuff and I don't know how to use the other 3 solutions

Posted
'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? :wink:

  • 8 months later...
  • 3 weeks later...
Posted

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! :mad: 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.

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

Posted
This is now in the wiki in vbscript form.

Works lovely. May update it to include FilterKeys and ToggleKeys though...

  • 2 weeks later...
Posted

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

  • 2 years later...
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...