Skip to content

Commit

Permalink
Merge pull request #16 from kyaulabs/feature/kyau-c77d-fixes-and-powe…
Browse files Browse the repository at this point in the history
…rtoys

Windows 11 Build 22621.1778
  • Loading branch information
kyau committed May 24, 2023
2 parents d3624bf + bf90db9 commit 9717a87
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Modules/apps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions Modules/cleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions Modules/packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion Modules/startmenu.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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" ""
Expand Down
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions user_settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 9717a87

Please sign in to comment.