Link to home
Start Free TrialLog in
Avatar of Len Kally
Len KallyFlag for United States of America

asked on

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

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
Avatar of Noah
Noah
Flag of Singapore image

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

If you are on a domain, you should do it via group policy, which offers all these settings for power profiles.
Avatar of Len Kally

ASKER

Not on a domain
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
Open gpedit.msc and look at the GPOs at: Computer config. - adm. templates - system - power management
Is it Video & Display Settings > Turn off display (plugged in)  This is for a desktop
Yes, that's it.
Where is the SLEEP=NEVER?
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
awesome thanks