How to Disable the sleep button in the keyboard for users?

ISC-IT-Admin
ISC-IT-Admin used Ask the Experts™
on
Dear Sir,

I have Windows 2003 R2 as Active Directory with group policy configured for students in a Lab.
Students are using the sleep button in the keyboard to log out from their NETOP session.
How can I disable the sleep button in the keyboard through group policy?

Please any help...
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Awarded 2009
Top Expert 2010

Commented:
There is a guide on how to do this here: http://support.microsoft.com/kb/302092

As far as I am aware this cannot be done with Group Policy

Author

Commented:
Hi Demazter,

Is there any thing more easier to do this?
Like a reg key to be imported to the registry to disable the sleep button.
Our keyboards are USB...

Author

Commented:
Honeslty the microsoft article is complicated a little bit...
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Awarded 2009
Top Expert 2010

Commented:
I don't believe so, there may be 3rd party tools out there that can do it for you.

Having a School that I look after myself brought this problem up for us as well.  we researched for quite a while trying to find a solution, in the end we replaced the keyboards because the 3rd party software was too expensive.

Commented:
Have not tested but this vbs script may do what your after.  Backup your registry first.  Save code as a .vbs file and run.
Option Explicit

Set WSHShell = WScript.CreateObject("WScript.Shell")
Dim WSHShell, n, p, itemtype, mybox

p = "HKEY_USERS\.DEFAULT\Control Panel\PowerCfg\CurrentPowerPolicy"
itemtype = "REG_SZ"
n = "4"
WSHShell.RegWrite p, n, itemtype

MyBox = MsgBox("You must Log Off/Log On for the changes to take effect.", 64,"Done")

Open in new window

Author

Commented:
Thank You djpazza,

Coulld you explain for me this script and how to import it to the group policy?
So this VB script is not tested... I'm taking risk...

Author

Commented:
I need to run this sript on every machine?

Thanks!
Dear Djpazza,

Please note that I tried and I run the script abobe, but it didn't work...

I turned off manually the sleep button from the control panel / Power option.

Awarded 2009
Top Expert 2010

Commented:
Did you try the microsoft option I provided?

Author

Commented:
No I didn't try the Microsoft Option... As I have an easy way to do it in Control Panel...
I was looking for a script or policy to force it on all Pcs...
Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial