From eee524111f4da92577e8ba7eb51505ddc3848533 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Sun, 25 Sep 2022 13:52:53 -0500 Subject: [PATCH 01/24] Merge Gaming Tweaks and Temp Files Addition (#193) * Update README.md * QOL Terminal - Win Update Revamp * Fix Flickering * Quick Fix - UAC Property error * Network Performance Tweak * Gaming Tweaks * Delete Temp Files Addition * Delete Temp Files GUI --- MainWindow.xaml | 1 + winutil.ps1 | 33 +++++++++++++++++---------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/MainWindow.xaml b/MainWindow.xaml index ee4fe807..b1e8420e 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -159,6 +159,7 @@ + diff --git a/winutil.ps1 b/winutil.ps1 index 98c2e483..90b75d9e 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -540,6 +540,7 @@ $WPFInstallUpgrade.Add_Click({ $WPFdesktop.Add_Click({ $WPFEssTweaksAH.IsChecked = $true + $WPFEssTweaksDeleteTempFiles.IsChecked = $true $WPFEssTweaksDeBloat.IsChecked = $false $WPFEssTweaksDVR.IsChecked = $true $WPFEssTweaksHiber.IsChecked = $true @@ -555,12 +556,12 @@ $WPFdesktop.Add_Click({ $WPFMiscTweaksNum.IsChecked = $true $WPFMiscTweaksLapPower.IsChecked = $false $WPFMiscTweaksLapNum.IsChecked = $false - $WPFMiscTweaksDisableUAC.IsChecked = $true }) $WPFlaptop.Add_Click({ $WPFEssTweaksAH.IsChecked = $true + $WPFEssTweaksDeleteTempFiles.IsChecked = $true $WPFEssTweaksDeBloat.IsChecked = $false $WPFEssTweaksDVR.IsChecked = $true $WPFEssTweaksHiber.IsChecked = $false @@ -576,12 +577,12 @@ $WPFlaptop.Add_Click({ $WPFMiscTweaksLapNum.IsChecked = $true $WPFMiscTweaksPower.IsChecked = $false $WPFMiscTweaksNum.IsChecked = $false - $WPFMiscTweaksDisableUAC.IsChecked = $true }) $WPFminimal.Add_Click({ $WPFEssTweaksAH.IsChecked = $false + $WPFEssTweaksDeleteTempFiles.IsChecked = $false $WPFEssTweaksDeBloat.IsChecked = $false $WPFEssTweaksDVR.IsChecked = $false $WPFEssTweaksHiber.IsChecked = $false @@ -597,7 +598,6 @@ $WPFminimal.Add_Click({ $WPFMiscTweaksNum.IsChecked = $false $WPFMiscTweaksLapPower.IsChecked = $false $WPFMiscTweaksLapNum.IsChecked = $false - $WPFMiscTweaksDisableUAC.IsChecked = $false }) $WPFtweaksbutton.Add_Click({ @@ -610,6 +610,13 @@ $WPFtweaksbutton.Add_Click({ $WPFEssTweaksAH.IsChecked = $false } + If ( $WPFEssTweaksDeleteTempFiles.IsChecked -eq $true ) { + Write-Host "Delete Temp Files" + Get-ChildItem -Path "C:\Windows\Temp" *.* -Recurse | Remove-Item -Force -Recurse + Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse + $WPFEssTweaksDeleteTempFiles.IsChecked = $false + } + If ( $WPFEssTweaksDVR.IsChecked -eq $true ) { If (!(Test-Path "HKCU:\System\GameConfigStore")) { New-Item -Path "HKCU:\System\GameConfigStore" -Force @@ -653,17 +660,6 @@ $WPFtweaksbutton.Add_Click({ ./OOSU10.exe ooshutup10.cfg /quiet $WPFEssTweaksOO.IsChecked = $false } - If ( $WPFMiscTweaksDisableUAC.IsChecked -eq $true) { - Write-Host "Disabling UAC..." - # This below is the pussy mode which can break some apps. Please. Leave this on 1. - # below i will show a way to do it without breaking some Apps that check UAC. U need to be admin tho. - # Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Type DWord -Value 0 - Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Type DWord -Value 0 # Default is 5 - # This will set the GPO Entry in Security so that Admin users elevate without any prompt while normal users still elevate and u can even leave it ennabled. - # It will just not bother u anymore - - $WPFMiscTweaksDisableUAC.IsChecked = $false - } If ( $WPFEssTweaksRP.IsChecked -eq $true ) { Write-Host "Creating Restore Point in case something bad happens" Enable-ComputerRestore -Drive "$env:SystemDrive" @@ -875,8 +871,7 @@ $WPFtweaksbutton.Add_Click({ ## Performance Tweaks and More Telemetry Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" -Name "SearchOrderConfig" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness" -Type DWord -Value 10 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex" -Type DWord -Value 10 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness" -Type DWord -Value 0 Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "WaitToKillServiceTimeout" -Type DWord -Value 2000 Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type DWord -Value 1 Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "WaitToKillAppTimeout" -Type DWord -Value 5000 @@ -891,7 +886,13 @@ $WPFtweaksbutton.Add_Click({ # Network Tweaks Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" -Name "IRPStackSize" -Type DWord -Value 20 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex" -Type DWord -Value 4294967295 + # Gaming Tweaks + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "GPU Priority" -Type DWord -Value 8 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Priority" -Type DWord -Value 6 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category" -Type String -Value "High" + # Group svchost.exe processes $ram = (Get-CimInstance -ClassName Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum / 1kb Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Type DWord -Value $ram -Force From 5c9c3679f12de8b3a1445d8fcbd40f4263fe9ea6 Mon Sep 17 00:00:00 2001 From: hoffmanra <33332650+hoffmanra@users.noreply.github.com> Date: Sun, 25 Sep 2022 13:53:48 -0500 Subject: [PATCH 02/24] Added LibreOffice to applications.json and winutil.ps1 to fix #171 (#178) * Fixes missing LibreOffice (#171) Added missing LibreOffice to fix issue #171. * Fixes missing LibreOffice (#171) Added LibreOffice to winutil.ps1 to fix issue #171. --- applications.json | 3 +++ winutil.ps1 | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/applications.json b/applications.json index 90e81414..f4f178a8 100644 --- a/applications.json +++ b/applications.json @@ -1,5 +1,8 @@ { "install": { + "Installlibreoffice": { + "winget": "TheDocumentFoundation.LibreOffice" + }, "Installadobe": { "winget": "Adobe.Acrobat.Reader.64-bit" }, diff --git a/winutil.ps1 b/winutil.ps1 index 90b75d9e..90dd9520 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -107,6 +107,10 @@ $WPFTab4BT.Add_Click({ #=========================================================================== $WPFinstall.Add_Click({ $wingetinstall = New-Object System.Collections.Generic.List[System.Object] + If ( $WPFInstalllibreoffice.IsChecked -eq $true ) { + $wingetinstall.Add("TheDocumentFoundation.LibreOffice") + $WPFInstalllibreoffice.IsChecked = $false + } If ( $WPFInstalladobe.IsChecked -eq $true ) { $wingetinstall.Add("Adobe.Acrobat.Reader.64-bit") $WPFInstalladobe.IsChecked = $false From f18b2bdb34101a9524affae6120fc81c2f0af509 Mon Sep 17 00:00:00 2001 From: Robin Avery Date: Sun, 25 Sep 2022 14:54:19 -0400 Subject: [PATCH 03/24] Create `FUNDING.yml` (#182) --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..0cd881c0 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://www.cttstore.com/windows-toolbox From 3ced5c3ea9962a86d4bf9eca4a2112a8a075b816 Mon Sep 17 00:00:00 2001 From: Sarah <45071533+PrincessAkira@users.noreply.github.com> Date: Sun, 25 Sep 2022 21:01:09 +0200 Subject: [PATCH 04/24] Longer Thing (#186) * redid the whole thing * man * Tweaks to change I like most of these but adding the UAC back in, Disabling Long Paths, and removing TPM properties aren't approved in the default essential tweaks. This should have been put into the Undo all portion Co-authored-by: Chris Titus --- MainWindow.xaml | 1 + winutil.ps1 | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/MainWindow.xaml b/MainWindow.xaml index b1e8420e..10acc031 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -179,6 +179,7 @@ +