How to automatically shutdown laptop if unplugged

I want my laptop to shutdown automatically after it gets disconnected from power. Can someone tell me if there exists some app for this for Windows 7


  1. Type “Power Options” in Start Menu search text field and hit enter key.

  2. Click on “Change Plan Settings” in front of active plan (Balanced, High Performance or Power Saver).

  3. Click on “Change advanced power settings”.

  4. In the next window scroll down and find the “Battery” option, Expand it.

  5. Expand “Low battery Level” and change the “on battery” value a high value e.g 95%.

  6. Expand the “Low battery action” and change the “on battery” option to Shutdown.

Source