Skip to content

Commit

Permalink
Merge pull request #1897 from microsoft/lusassl-HCConfigMgrPowerPlan
Browse files Browse the repository at this point in the history
Add High Performance (ConfigMgr) power plan detection to HC
  • Loading branch information
lusassl-msft authored Nov 30, 2023
2 parents 87cc1a3 + 7b9e31b commit 2417c26
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ function Get-PowerPlanSetting {

if ($null -ne $win32_PowerPlan) {

if ($win32_PowerPlan.InstanceID -eq "Microsoft:PowerPlan\{8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c}") {
# Guid 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c is 'High Performance' power plan that comes with the OS
# Guid db310065-829b-4671-9647-2261c00e86ef is 'High Performance (ConfigMgr)' power plan when configured via Configuration Manager / SCCM
if (($win32_PowerPlan.InstanceID -eq "Microsoft:PowerPlan\{8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c}") -or
($win32_PowerPlan.InstanceID -eq "Microsoft:PowerPlan\{db310065-829b-4671-9647-2261c00e86ef}")) {
Write-Verbose "High Performance Power Plan is set to true"
$highPerformanceSet = $true
} else { Write-Verbose "High Performance Power Plan is NOT set to true" }
Expand Down

0 comments on commit 2417c26

Please sign in to comment.