Trim Trailing Whitespace

This commit is contained in:
Carterpersall
2023-10-04 10:08:10 -05:00
parent 807b0fb307
commit 0ce32aa2c2
57 changed files with 236 additions and 236 deletions

View File

@@ -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