This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List all possible power config GUIDs in Windows | |
# Run: this-script.ps1 | Out-File powercfg.ps1 | |
# Then edit and run powercfg.ps1 | |
# (c) Pekka "raspi" Järvinen 2017 | |
# https://stackoverflow.com/a/22156833 | |
if (-not ([System.Management.Automation.PSTypeName]'PowrProf').Type) | |
{ | |
Add-Type -TypeDefinition @" | |
using System; |