0

I know I can set the monitor timeout to 'never' using powercfg -change -monitor-timeout-ac 0

However, how can I check what the value of monitor timeout is? Without setting it to a new value?

Compo
  • 36,585
  • 5
  • 27
  • 39
Geek406
  • 21
  • 2

1 Answers1

0

Perhaps this PowerShell example works for you, supposedly the GUIDs shouldn't change. The values would be represented in Minutes.

powercfg @(
    '/query'
    '381b4222-f694-41f0-9685-ff5bb260df2e'
    '7516b95f-f776-4464-8c53-06167f40cc99'
    '3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e'
) | Select-Object -Last 2 -Skip 1 | & {
    begin { $out = [ordered]@{} }
    process {
        $key, $val = $_.Split(':').Trim()
        $val = [int] $val / 60

        if ($val -eq 0) {
            $val = 'Never'
        }

        $out[$key] = $val
    }
    end {
        $out
    }
}
Compo
  • 36,585
  • 5
  • 27
  • 39
Santiago Squarzon
  • 41,465
  • 5
  • 14
  • 37