Skip to content

Commit

Permalink
Add High Performance (ConfigMgr) powerplan
Browse files Browse the repository at this point in the history
  • Loading branch information
lusassl-msft committed Nov 29, 2023
1 parent 87cc1a3 commit 8a0244f
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' powerplan that comes with the OS
# Guid db310065-829b-4671-9647-2261c00e86ef is 'High Performance (ConfigMgr)' powerplan 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 8a0244f

Please sign in to comment.