Method to allow mouse to wake computer from standby across enterprise

Posted on 2009-02-09
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?
Question by:the_etruscan
    LVL 21

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

    Author Comment

    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

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article ( first and run the tool TDSSKiller ( to get rid of the infection. Once done, and if the …
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now