mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-05 23:40:10 +00:00
Trim Trailing Whitespace
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
Function Invoke-WPFUltimatePerformance {
|
||||
<#
|
||||
|
||||
|
||||
.DESCRIPTION
|
||||
PlaceHolder
|
||||
|
||||
|
||||
#>
|
||||
param($State)
|
||||
Try{
|
||||
@@ -31,7 +31,7 @@ Function Invoke-WPFUltimatePerformance {
|
||||
}
|
||||
else {
|
||||
Write-Host "Power scheme '$powerSchemeName' already exists."
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($state -eq "Disabled"){
|
||||
# Define the name of the power scheme you want to remove
|
||||
@@ -50,10 +50,10 @@ Function Invoke-WPFUltimatePerformance {
|
||||
|
||||
if($null -ne $guid){
|
||||
Write-Host "Found power scheme '$powerSchemeName' with GUID $guid. Removing..."
|
||||
|
||||
|
||||
# Remove the power scheme
|
||||
powercfg /delete $guid
|
||||
|
||||
|
||||
Write-Host "Power scheme removed successfully."
|
||||
}
|
||||
else {
|
||||
@@ -65,7 +65,7 @@ Function Invoke-WPFUltimatePerformance {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Catch{
|
||||
Write-Warning $psitem.Exception.Message
|
||||
|
||||
Reference in New Issue
Block a user