Run Script on Battery/Critical Power


  1. Posts : 4
    Windows 7 64
       #1

    Run Script on Battery/Critical Power


    Hi all,

    In XP, we had the option of executing a script when the computer switched from AC to battery power, and also when the battery reached a critical level. This was extremely useful because I had a special script run to send an email that the power had gone out and then hibernate the computer when it reached a critical level.

    In the Windows 7 power options screens, I see no such options. Were they removed? If so, wtf?

    Thanks in advance.
      My Computer


  2. Posts : 8,608
    Windows 7 Ultimate 32bit SP1
       #2
      My Computer


  3. Posts : 4
    Windows 7 64
    Thread Starter
       #3

    Thanks. It doesn't really help me directly, except to imply that MS did in fact remove this functionality and the only solution is to develop a script that does what XP used to be able to do. Is that what you're telling me?

    I guess I am going to have to write my own service to monitor the power state and perform an action when the state changes. Jeez.
      My Computer


  4. Posts : 173
    Windows 7
       #4

    Here is a resource for setting up a power plan: Power plans: frequently asked questions.

    Tara
    Windows Outreach Team
      My Computer


  5. Posts : 4
    Windows 7 64
    Thread Starter
       #5

    TaraSWinTeam said:
    Here is a resource for setting up a power plan: Power plans: frequently asked questions.

    Tara
    Windows Outreach Team

    That tells me nothing... did you even read my question?
      My Computer


  6. Posts : 4
    Windows 7 64
    Thread Starter
       #6

    I ended up just writing a quick-and-dirty service in VB.NET to do this. If anyone is interested in testing it, let me know. Thanks for nothing MS, for disabling a very useful feature.
      My Computer


  7. Posts : 212
    Win7 64 bits FR
       #7

    We would need it at work Speebs, I hope you will see my post.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:31.
Find Us