From 00af474f09847c8f924872b69c37c86ffa996f22 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Tue, 4 Jun 2024 03:28:27 +0000 Subject: [PATCH] Compile Winutil --- winutil.ps1 | 75 ++++++++++++++++++------------------------- xaml/inputTweaks.xaml | 3 +- 2 files changed, 32 insertions(+), 46 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index bc456670..157da224 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -8506,7 +8506,7 @@ $sync.configs.tweaks = '{ "Description": "Most modern laptops have connected stadby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399", "category": "Essential Tweaks", "panel": "1", - "Order": "a011_", + "Order": "a014_", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0", @@ -8604,41 +8604,6 @@ $sync.configs.tweaks = '{ } ] }, - "WPFTweaksCopilotOff": { - "Content": "Disable Copilot", - "Description": "Copilot off", - "category": "Essential Tweaks", - "panel": "1", - "Order": "a011_", - "registry": [ - { - "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot", - "Name": "TurnOffWindowsCopilot", - "Type": "DWord", - "Value": "1", - "OriginalValue": "0p" - }, - { - "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\WindowsCopilot", - "Name": "TurnOffWindowsCopilot", - "Type": "DWord", - "Value": "1", - "OriginalValue": "0" - } - ], - "InvokeScript": [ - " - Write-Host \"Remove Popilot\" - dism /online /remove-package /package-name:Microsoft.Windows.Copilot - " - ], - "UndoScript": [ - " - Write-Host \"Why???\" - Write-Host \"Remove Popilot\" - " - ] - }, "WPFTweaksServices": { "Content": "Set Services to Manual", "Description": "Turns a bunch of system services to manual that don't need to be running all the time. This is pretty harmless as if the service is needed, it will simply start on demand.", @@ -10783,7 +10748,7 @@ $sync.configs.tweaks = '{ "Description": "This will edit the config file of the Windows Terminal Replacing the Powershell 5 to Powershell 7 and install Powershell 7 if necessary", "category": "Essential Tweaks", "panel": "1", - "Order": "a007_", + "Order": "a009_", "InvokeScript": [ "Invoke-WPFTweakPS7 -action \"PS7\"" ], @@ -10846,16 +10811,39 @@ $sync.configs.tweaks = '{ "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Order": "a025_", + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot", + "Name": "TurnOffWindowsCopilot", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\WindowsCopilot", + "Name": "TurnOffWindowsCopilot", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "Name": "ShowCopilotButton", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], "InvokeScript": [ " - Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name \"ShowCopilotButton\" -Type \"DWord\" -Value \"0\" - New-Item \"HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot\" -Force | New-ItemProperty -Name \"TurnOffWindowsCopilot\" -Value \"1\" -Force -Type \"DWord\" - " + Write-Host \"Remove Popilot\" + dism /online /remove-package /package-name:Microsoft.Windows.Copilot + " ], "UndoScript": [ " - Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name \"ShowCopilotButton\" -Type \"DWord\" -Value \"1\" - Remove-Item \"HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot\" -Force + Write-Host \"Install Copilot\" + dism /online /add-package /package-name:Microsoft.Windows.Copilot " ] }, @@ -13850,12 +13838,11 @@ $inputXML = ' - + -