Windows 10 - Need a Script for Turn off Display = NEVER & Sleep:  NEVER

zero000kool
zero000kool used Ask the Experts™
on
Can anyone help me looking for a simple script that 'Turn off display = NEVER' & Sleep = NEVER, in power settings.

I cannot do this through the GUI due to the fact, that I am putting this into a script for imaging.

This is for desktops not laptops


Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
NoahHardware Tester and Debugger

Commented:
Hi there! :)

If you cannot do this through GUI, it's really challenging.. But you may give this a go?

& powercfg -SetACvalueindex $PowerSchemeGUID $PowerSubGUID $LidAction --% 0x00000000

Open in new window

Distinguished Expert 2018

Commented:
If you are on a domain, you should do it via group policy, which offers all these settings for power profiles.

Author

Commented:
Not on a domain
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Author

Commented:
I am in a workgroup, I can local group policy, what is the group policy and can setup for these two options.  Thanks
Keep in mind learning all this stuff.

Thanks
Distinguished Expert 2018

Commented:
Open gpedit.msc and look at the GPOs at: Computer config. - adm. templates - system - power management

Author

Commented:
Is it Video & Display Settings > Turn off display (plugged in)  This is for a desktop
Distinguished Expert 2018

Commented:
Yes, that's it.

Author

Commented:
Where is the SLEEP=NEVER?
Distinguished Expert 2018
Commented:
Computer config. - adm. templates - system - power management - sleep settings - Specify the system sleep timeout (plugged in) .
Zero would mean "never".

Author

Commented:
awesome thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial