Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.69k stars 1.08k forks source link

Add functions to change what happens when a laptop lid is closed #337

Open kroimon opened 3 years ago

kroimon commented 3 years ago

I need to set this to None on all my fresh Windows installations, so at least the 'Do Nothing' function would be very helpful. If you don't want to have all four varieties, I would at least suggest to keep the 'Do Nothing' and 'Sleep' ones.

Reference: https://docs.microsoft.com/de-de/windows-hardware/customize/power-settings/power-button-and-lid-settings-lid-switch-close-action

eabase commented 3 years ago

You probably should test if the Firmware supports these different schemes, before enabling. Use: powercfg.exe /A