KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64
User : ServerPC ( 0)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  C:/Windows/diagnostics/system/Power/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Windows/diagnostics/system/Power/TS_MinProcessorState.ps1
# Copyright � 2008, Microsoft Corporation. All rights reserved.

#Localization Data
Import-LocalizedData -BindingVariable localizationString -FileName Power_Troubleshooter

# Break on uncaught exceptions
trap {break}

. .\Powerconfig.ps1

#check minimum processor state setting
function CheckMinimumProcessorState {
        Write-DiagProgress -activity $localizationString.Check_MinimumProcessorState
        [bool]$result = $true
        if(-not(CheckPPMCapability)) {
            return $result
        }

        $subgroupguid = "54533251-82be-4824-96c1-47b60b740d00"
        $settingguid = "893dee8e-2bef-41e0-89c6-b55d0929964c"
        $AC_settingvalue = Getpowersetting $true $subgroupguid $settingguid
        $AC_settingvalue_default = GetDefaultpowersetting $true $subgroupguid $settingguid
        $access_AC = CheckPowerSettingAccess $true $settingguid

        $DC_settingvalue = Getpowersetting $false $subgroupguid $settingguid
        $DC_settingvalue_default = GetDefaultpowersetting $false $subgroupguid $settingguid
        $access_DC = CheckPowerSettingAccess $false $settingguid

        if(($AC_settingvalue -ne $null) -and ($DC_settingvalue -ne $null)) {
            if((($AC_settingvalue -gt $AC_settingvalue_default) -and $access_AC) -or (($DC_settingvalue -gt $DC_settingvalue_default) -and $access_DC -and (IsLaptop))) {
                $result = $false
            }
        }

        return $result

}

Update-DiagRootCause -id RC_MinimumProcessorState -Detected (-not(CheckMinimumProcessorState))

Anon7 - 2021