From bf90db961044c137baaaf75b67c037fe8a905b35 Mon Sep 17 00:00:00 2001 From: kyau Date: Wed, 24 May 2023 13:22:41 -0700 Subject: [PATCH] Windows 11 Build 22621.1778 * Add: winget: PowerToys has been added to default software installed * Modify: Windows Defender defaults to non-removal as it now breaks Windows Update * Modify: README.md: added notice about defender breaking update * Modify: README.md: badges updated, discord badge added * Modify: README.md: Further Setup added with a link to the git wiki * Fix: MSYS2: SSH throwing openssl version mismatch - fixes #15 * Fix: README.md: TOC link to Attribution now works properly * Remove: Chocolatey: EarTrumpet has been removed from default software --- Modules/apps.ps1 | 4 ++-- Modules/cleanup.ps1 | 2 ++ Modules/packages.ps1 | 11 +++++++++++ Modules/startmenu.ps1 | 1 - README.md | 20 +++++++++++++++----- user_settings.ps1 | 5 +++-- 6 files changed, 33 insertions(+), 10 deletions(-) diff --git a/Modules/apps.ps1 b/Modules/apps.ps1 index fb606f0..91953b2 100644 --- a/Modules/apps.ps1 +++ b/Modules/apps.ps1 @@ -73,7 +73,7 @@ Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "Bi Add-Reg -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Type Dword -Value "0" Add-Reg -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -Type Dword -Value "1" -# Remove Movies-TypeV/Xbox +# Remove Xbox/GameBar (not included in Windows N versions) Remove-WService -Name "XblAuthManager" Remove-WService -Name "XblGameSave" Remove-WService -Name "XboxNetApiSvc" @@ -122,7 +122,7 @@ Foreach ($tmp in $tmpdel) { REG.EXE delete $tmp /f | Out-Null } -# Reset Icon Cache / Cleanup OneDrive +# Reset Icon Cache TASKKILL.EXE /F /IM explorer.exe | Out-Null If (-NOT $Microsoft365) { diff --git a/Modules/cleanup.ps1 b/Modules/cleanup.ps1 index 6336e8a..ea57e67 100644 --- a/Modules/cleanup.ps1 +++ b/Modules/cleanup.ps1 @@ -447,6 +447,8 @@ Foreach ($pkg in $MsysPkgs) { Show-Package "${pkg}" Show-RunAsUser -Command "${Env:SystemDrive}\msys64\msys2_shell.cmd -defterm -here -no-start -msys -c `"pacman -S ${pkg} --noconfirm`"" } +Show-Package "msys/openssh-fix" +Show-RunAsUser -Command "${Env:SystemDrive}\msys64\msys2_shell.cmd -defterm -here -no-start -msys -c `"pacman -S mingw64/mingw-w64-x86_64-curl mingw64/mingw-w64-x86_64-gnutls mingw64/mingw-w64-x86_64-openssl msys/libopenssl msys/libgnutls msys/openssl msys/openssh --noconfirm`"" Show-Package -NewLine # MSYS2 Path Fixes (Removable/Network Drives) diff --git a/Modules/packages.ps1 b/Modules/packages.ps1 index 579068d..749e11e 100644 --- a/Modules/packages.ps1 +++ b/Modules/packages.ps1 @@ -58,6 +58,17 @@ $runtest #Start-Process -FilePath "${Env:ProgramData}\chocolatey\bin\CHOCO.EXE" -ArgumentList "install $pkg -y -r --ignore-package-codes" -NoNewWindow -Wait -RedirectStandardOutput "${Env:UserProfile}\choco_install.txt" Show-Package "${ipkg}" } + +# Install PowerToys +$runcmd = @" +@ECHO OFF + +`"%LocalAppData%\Microsoft\WindowsApps\winget.exe`" install --scope machine Microsoft.PowerToys -s winget >nul +"@ +New-Item -Path "${Env:UserProfile}" -Name "runcmd.bat" -ItemType File -Value $runcmd | Out-Null +Start-Process -FilePath "${Env:UserProfile}\runcmd.bat" -NoNewWindow -Wait +Remove-Item -Path "${Env:UserProfile}\runcmd.bat" -Force | Out-Null +Show-Package "powertoys" Show-Package -NewLine # Change Calculator Keyboard Key to Speedcrunch diff --git a/Modules/startmenu.ps1 b/Modules/startmenu.ps1 index f4f7444..33646b0 100644 --- a/Modules/startmenu.ps1 +++ b/Modules/startmenu.ps1 @@ -63,7 +63,6 @@ Add-Shortcut "Development\Resource Hacker" "${Env:ProgramFiles(x86)}\Resource Ha Add-Shortcut "Development\Sublime Text" "${Env:ProgramFiles}\Sublime Text\sublime_text.exe" "" Add-Shortcut "Hardware\Core Temp" "${Env:ProgramData}\chocolatey\lib\coretemp\tools\Core Temp.exe" "win11tweak-hardware.dll,138" Add-Shortcut "Hardware\CPU-Z" "${Env:ProgramFiles}\CPUID\CPU-Z\cpuz.exe" "" -Add-Shortcut "Hardware\EarTrumpet" "${Env:ProgramData}\chocolatey\lib\eartrumpet\tools\EarTrumpet\EarTrumpet.exe" "" Add-Shortcut "Hardware\MSI Afterburner" "${Env:ProgramFiles(x86)}\MSI Afterburner\MSIAfterburner.exe" "" Add-Shortcut "Hardware\ScrCpy" "${Env:ProgramData}\chocolatey\lib\scrcpy\tools\scrcpy.exe" "win11tweak-hardware.dll,3" Add-Shortcut "Hardware\Voicemeeter Potato" "${Env:ProgramFiles(x86)}\VB\Voicemeeter\voicemeeter8x64.exe" "" diff --git a/README.md b/README.md index 4a79b3d..55b106b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ -# Windows 11 Tweaks - Build 22621.1555 +# Windows 11 Tweaks - Build 22621.1778 ![LOGO](README_media/LOGO.png) -[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)   [![Semantic Versioning](https://img.shields.io/badge/semantic%20versioning-1.2.5-333333.svg)](https://semver.org)   [![GitHub](https://img.shields.io/github/license/kyaulabs/win11tweak)](LICENSE)   [![Gitleaks](https://img.shields.io/badge/protected%20by-gitleaks-blue)](https://github.com/zricethezav/gitleaks)   [![CI](https://img.shields.io/github/actions/workflow/status/kyaulabs/win11tweak/psscriptanalyzer.yml)](https://github.com/kyaulabs/win11tweak/actions) +[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)   [![GitHub](https://img.shields.io/github/license/kyaulabs/win11tweak)](LICENSE)   [![Gitleaks](https://img.shields.io/badge/protected%20by-gitleaks-blue)](https://github.com/zricethezav/gitleaks)   [![CI](https://img.shields.io/github/actions/workflow/status/kyaulabs/win11tweak/psscriptanalyzer.yml)](https://github.com/kyaulabs/win11tweak/actions)\ +[![Semantic Versioning](https://img.shields.io/github/v/release/kyaulabs/win11tweak?include_prereleases&logo=semver&sort=semver)](https://semver.org)   [![Discord](https://img.shields.io/discord/88713030895943680?logo=discord&color=blue&logoColor=white)](https://discord.gg/DSvUNYm) ## Disclaimer @@ -34,7 +35,8 @@ damage that may ensue. * [Everything](#everything) * [CCleaner](#ccleaner) * [MSEdgeRedirect](#msedgeredirect) -* [Attribution & References](#attribution--references) +* [Further Setup](#further-setup) +* [Attribution](#attribution) ## Introduction @@ -178,10 +180,14 @@ With the computer updated and activated it is now time to download the script. D ### Windows Defender (optional) +``` +📌 NOTE +If you choose to keep Windows Defender installed, the script used to remove it 'defender.ps1' will get +flagged by Defender itself, this is normal behavior. +``` ``` 🚧 WARNING -If you choose to keep Windows Defender installed, the script used to disable Defender 'defender.ps1' will -get flagged by Defender itself, this is normal behavior. +Removal of Windows Defender WILL break the ability to use Windows Update! ``` Before the main script can be run Windows Defender needs to be disabled along with tamper protection. @@ -583,6 +589,10 @@ Hover over the weather widget in the taskbar to open the News/Weather Widget win Reboot the machine to continue. +## Further Setup + +Additional setup and software configuration can be found on the [Wiki](https://github.com/kyaulabs/win11tweak/wiki). + ## Attribution Without all of the following this guide/script would not have been possible. diff --git a/user_settings.ps1 b/user_settings.ps1 index 75b972d..1fd36a5 100644 --- a/user_settings.ps1 +++ b/user_settings.ps1 @@ -40,7 +40,8 @@ function Add-Configuration { $script:WorkGroupName = "KYAULABS" # Keep Windows Defender? ($true / $false) - $script:WinDefender = $false + # NOTE: Removal breaks Windows Update. + $script:WinDefender = $true # Keep Windows Security? ($true/$false) # NOTE: Removal not recommended, breaks Windows Defender & Windows Update. @@ -94,7 +95,7 @@ function Add-Configuration { # gaming "playnite","amazongames","battle.net","epicgameslauncher","goggalaxy","origin","steam","ubisoft-connect", # hardware applications/drivers - "adb","cpu-z.install","eartrumpet","msiafterburner","voicemeeter-potato", + "adb","cpu-z.install","msiafterburner","voicemeeter-potato", # security applications #"gpg4win" "keepassxc","yubico-authenticator","yubikey-manager","yubikey-piv-manager"