We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


Method to allow mouse to wake computer from standby across enterprise

the_etruscan asked
Medium Priority
Last Modified: 2012-05-06
I'm trying to enable the mouse to wake up computers from standby across my enterprise.  About 9000 windows XP machines.  I've tried writing a vbscript to alter the registry for this, but I've found it's nearly impossible to determine what the registry key will be from machine to machine.  I've also looked into using powercfg.exe /deviceenablewake devicename, but here I also run into the problem where I can't figure out what the devicename will be from machine to machine as it changes.  Does anybody know of a way to do this?
Watch Question

I have no complete solution for you , but maybe this will help you...
You can use
powercfg -devicequery wake_from_any
to get a list of all devices (devicenames) that are capable of waking up the computer.
It should be possible to use this list within a script. Most times, the devicename of the connected mouse contains the string "mouse" or something similar.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


This is actually the direction I'm trying to take now.  I was hoping there was someway through WMI to do this.  Thanks for your comment.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.