2

I want to toggle the power saving mode of my desktop PC. I want that if i'm on my PC over the day it should preventing itself from shutting down, turning the monitor off and disabling the hard disk.

But if i'm not in my company i want to set it to the power save mode which should disable the hard disk and monitor after a specified amount of time. It should just toggles the modes if i press [WIN]+[L](lock screen) to the energy saving mode and if i unlock the computer back to the high capacity mode.

So how can i achieve this? Is this achievable with a Script or is there no way to do this?

Seth
  • 9,393
CentrixDE
  • 780

1 Answers1

2

You can use the default windows task scheduler to setup a task that runs on workstation lock/unlock. I haven't verified how reliable it is though. So just navigate to the Windows Task Scheduler and Create a New Task with a Trigger set to On Workstation Lock and change the power plan using powercfg to the energy saving one and use a Task with a Trigger On Workstation Unlock to toggle it back to "full power".

An other solution would be to try to rebind Win+L by e.g. using AutoHotKey.

Seth
  • 9,393