[Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

Method to allow mouse to wake computer from standby across enterprise

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?
1 Solution
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.
the_etruscanAuthor Commented:
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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now