Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
awesome thanks