how can I turn off ‘allow hybrid sleep’ in advanced power setting? by c#
by manually: power options -> change Plan Settings -> change advanced power setting->
Sleep-> ‘Allow hybrid sleep’ -> plugged in: OFF
how can I turn off ‘allow hybrid sleep’ in advanced power setting? by c#
Share
If you are targeting Windows 7/2008 Server then you can use WMI and the Win32_PowerSetting class. Below is code that does that. Make sure to add an assembly reference and
usingdirective toSystem.Management.