Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ultimate Performance via GUID rather than name #2556

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

AtisFPS
Copy link
Contributor

@AtisFPS AtisFPS commented Aug 12, 2024

Powerplan improvement

The issue appears to be related to the Windows language. I've noticed that the Ultimate Power Plan doesn't activate automatically because its name varies across different Windows languages.

I've created a small script that may help. It retrieves the GUID we just created, applies it, and changes the name and description simultaneously.

Script info

  • Import the power plan using the GUID (same as the one for the Ultimate Power Plan).
  • Customize the name and description of the power plan.
  • Apply the power plan using its GUID.

Final render

image

@YusufKhalifadev
Copy link
Contributor

this won't be accepted cause of the french text in here

foreach ($line in $duplicateOutput) {
                if ($line -match "GUID du mode de gestion de l'alimentation\s*:\s*([a-fA-F0-9\-]+)") {
                    $guid = $matches[1]
                    Write-Output "GUID: $guid has been extracted and stored in the variable."
                    break
                }

@AtisFPS
Copy link
Contributor Author

AtisFPS commented Aug 13, 2024

Ups my bad i will changed that

@AtisFPS
Copy link
Contributor Author

AtisFPS commented Aug 13, 2024

I have patch that part thanks for that :D

Copy link
Owner

@ChrisTitusTech ChrisTitusTech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool idea on how to search and find the power plan across languages. I'll try this out.

@ChrisTitusTech ChrisTitusTech merged commit 885108d into ChrisTitusTech:main Sep 10, 2024
1 check passed
@ChrisTitusTech ChrisTitusTech added the skip-changelog Skip Change Logs label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Skip Change Logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants