#1 Access Intune > click Device configuration > click Profiles > click Create profile button
#2 Select Platform: Windows 10 or later > click Profile: choose Custom > click Create button > Enter Name and Description > In Custom OMA-URI Settings, click Add.
#3 Add each of these:
Name: DisplayOffTimeoutOnBattery
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/Power/DisplayOffTimeoutOnBattery
Data Type: String
Value: <enabled/><data id=”EnterVideoDCPowerDownTimeOut” value=”0″/>
Name: DisplayOffTimeoutPluggedIn
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/Power/DisplayOffTimeoutPluggedIn
Data Type: String
Value: <enabled/><data id=”EnterVideoACPowerDownTimeOut” value=”0″/>
Name: StandbyTimeoutOnBattery
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/Power/StandbyTimeoutOnBattery
Data Type: String
Value: <enabled/><data id=”EnterDCStandbyTimeOut” value=”0″/>
Name: StandbyTimeoutPluggedIn
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/Power/StandbyTimeoutPluggedIn
Data Type: String
Value: <enabled/><data id=”EnterACStandbyTimeOut” value=”0″/>
Name: HibernateTimeoutPluggedIn
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/Power/HibernateTimeoutPluggedIn
Data Type: String
Value: <enabled/><data id=”EnterACHibernateTimeOut” value=”0″/>
#4 Add Assignment > Sync Policy > Verify on device
Notes
Use the below commands in a script, if you have any trouble with setting policies.
powercfg /change monitor-timeout-ac 0
powercfg /change disk-timeout-ac 0
powercfg /change standby-timeout-ac 0
powercfg /change hibernate-timeout-ac 0