Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Run Script on Battery/Critical Power


06 Feb 2010   #1

Windows 7 64
 
 
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 System SpecsSystem Spec
.

06 Feb 2010   #2
Microsoft MVP

Windows 7 Ultimate 32bit SP1
 
 

My System SpecsSystem Spec
06 Feb 2010   #3

Windows 7 64
 
 

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 System SpecsSystem Spec
.


06 Feb 2010   #4

Windows 7
 
 

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

Tara
Windows Outreach Team
My System SpecsSystem Spec
06 Feb 2010   #5

Windows 7 64
 
 

Quote   Quote: Originally Posted by TaraSWinTeam View Post
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 System SpecsSystem Spec
12 Feb 2010   #6

Windows 7 64
 
 

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 System SpecsSystem Spec
22 Dec 2011   #7

Win7 64 bits FR
 
 

We would need it at work Speebs, I hope you will see my post.
My System SpecsSystem Spec
Reply

 Run Script on Battery/Critical Power




Thread Tools



Similar help and support threads for2: Run Script on Battery/Critical Power
Thread Forum
Possible Causes for Kernel-Power Critical Errors BSOD Help and Support
Broken AC power jack, no battery power, help Hardware & Devices
Disable Critical Battery Notification Performance & Maintenance
Disable automatic suspend on critical battery level Performance & Maintenance
suddenly don't get low or critical battery warnings on laptop.. Performance & Maintenance
Not Shutting Down Properly At Critical Battery Performance & Maintenance
critical battery sound volume level? Sound & Audio

Our Sites

Site Links

About Us

Find 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 02:36 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33