I am trying to query the "current AC power setting index" , so if the value is not 0 it has to change the value to 0 , I am able to query the entire display setting using below script , but struck on getting the current AC power setting index value . Any help is much appreciated.
if (powercfg /q|Select-String -Pattern "(display)" -Context 9 ) -split "`r`n" | select -last 9
![78075-image.png] : /answers/storage/attachments/78075-image.png