From 07a78fc3d82b79137d54263c6a95720a70a4beb5 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Tue, 16 Jul 2024 19:03:21 +0000 Subject: [PATCH] Compile Winutil --- winutil.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 56bc193d..ebd97cd6 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -5037,9 +5037,9 @@ function Invoke-WPFShortcut { else{ $shell = "powershell.exe" } - + $shellArgs = "-ExecutionPolicy Bypass -Command `"Start-Process $shell -verb runas -ArgumentList `'-Command `"irm https://christitus.com/win | iex`"`'" - + $DestinationName = "WinUtil.lnk" Invoke-WebRequest -Uri "https://christitus.com/images/logo-full.png" -OutFile "$env:TEMP\cttlogo.png" @@ -5184,11 +5184,11 @@ function Invoke-WPFTweakPS7{ Write-Host "Windows Terminal not installed. Skipping Terminal preference" return } - # Check if the Windows Terminal settings.json file exists and return if not (Prereqisite for the following code) + # Check if the Windows Terminal settings.json file exists and return if not (Prereqisite for the following code) $settingsPath = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" if (-not (Test-Path -Path $settingsPath)){ Write-Host "Windows Terminal Settings file not found at $settingsPath" - return + return } Write-Host "Settings file found." @@ -5203,7 +5203,7 @@ function Invoke-WPFTweakPS7{ Write-Host "using the name attribute." } else { Write-Host "No PowerShell 7 profile found in Windows Terminal settings using the name attribute." - } + } } function Invoke-WPFtweaksbutton { <# @@ -5292,7 +5292,7 @@ Function Invoke-WPFUltimatePerformance { if ($ultimatePlan) { # Extract the GUID of the Ultimate Performance plan $ultimatePlanGUID = $ultimatePlan.Line.Split()[3] - + # Set a different power plan as active before deleting the Ultimate Performance plan $balancedPlanGUID = (powercfg -list | Select-String -Pattern "Balanced").Line.Split()[3] powercfg -setactive $balancedPlanGUID