2

How can Set power settings turn off: never (turn off the display= never, put the computer to sleep = never), by c# code

enter image description here

Pretzel
  • 8,141
  • 16
  • 59
  • 84
sari k
  • 2,051
  • 6
  • 28
  • 34
  • This Powershell cmd is a start in the right direction: Get-WmiObject -namespace "root\cimv2\power" -Class Win32_PowerPlan | Where-Object -Property IsActive -eq True – Pretzel Feb 26 '15 at 23:50

1 Answers1

-1

The link given in this question can show you a way. Programmatically change Windows power settings

and same question asked by a user called sari before, maybe you asked again before. How can to set Power setting turn off: never , by c#

and again a user wrote a comment of possible duplicate with this question Disabling Screen Saver and Power Options in C#

and :)) I think you question has a few possible duplicates

Community
  • 1
  • 1
Serkan Hekimoglu
  • 4,234
  • 5
  • 40
  • 64