Merge branch 'test-2022' of https://github.com/ChrisTitusTech/winutil into test-2022

This commit is contained in:
Chris Titus 2022-10-08 18:02:50 -05:00
commit 9b67324243
2 changed files with 8 additions and 0 deletions

View File

@ -192,6 +192,7 @@
<CheckBox Name="MiscTweaksDisableNotifications" Content="Disable Notification" Margin="5,0"/>
<CheckBox Name="MiscTweaksDisableTPMCheck" Content="Disable TPM on Update" Margin="5,0"/>
<CheckBox Name="EssTweaksDeBloat" Content="Remove ALL MS Store Apps" Margin="5,0"/>
<CheckBox Name="EssTweaksRemoveCortana" Content="Remove Cortana" Margin="5,0"/>
<CheckBox Name="EssTweaksRemoveEdge" Content="Remove Microsoft Edge" Margin="5,0"/>
<CheckBox Name="MiscTweaksRightClickMenu" Content="Set Classic Right-Click Menu " Margin="5,0"/>
<Button Name="tweaksbutton" Background="AliceBlue" Content="Run Tweaks" Margin="20,10,20,0"/>

View File

@ -574,6 +574,7 @@ $WPFdesktop.Add_Click({
$WPFEssTweaksAH.IsChecked = $true
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
$WPFEssTweaksDeBloat.IsChecked = $false
$WPFEssTweaksRemoveCortana.IsChecked = $false
$WPFEssTweaksRemoveEdge.IsChecked = $false
$WPFEssTweaksDiskCleanup.IsChecked = $false
$WPFEssTweaksDVR.IsChecked = $true
@ -600,6 +601,7 @@ $WPFlaptop.Add_Click({
$WPFEssTweaksAH.IsChecked = $true
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
$WPFEssTweaksDeBloat.IsChecked = $false
$WPFEssTweaksRemoveCortana.IsChecked = $false
$WPFEssTweaksRemoveEdge.IsChecked = $false
$WPFEssTweaksDiskCleanup.IsChecked = $false
$WPFEssTweaksDVR.IsChecked = $true
@ -626,6 +628,7 @@ $WPFminimal.Add_Click({
$WPFEssTweaksAH.IsChecked = $false
$WPFEssTweaksDeleteTempFiles.IsChecked = $false
$WPFEssTweaksDeBloat.IsChecked = $false
$WPFEssTweaksRemoveCortana.IsChecked = $false
$WPFEssTweaksRemoveEdge.IsChecked = $false
$WPFEssTweaksDiskCleanup.IsChecked = $false
$WPFEssTweaksDVR.IsChecked = $false
@ -1101,6 +1104,10 @@ $WPFtweaksbutton.Add_Click({
Write-Host "Adjusted visual effects for performance"
$WPFMiscTweaksDisplay.IsChecked = $false
}
If ( $WPFEssTweaksRemoveCortana.IsChecked -eq $true ) {
Write-Host "Removing Cortana..."
Get-AppxPackage -allusers Microsoft.549981C3F5F10 | Remove-AppxPackage
$WPFEssTweaksRemoveCortana.IsChecked = $false
If ( $WPFEssTweaksRemoveEdge.IsChecked -eq $true ) {
Write-Host "Removing Microsoft Edge..."
iwr -useb https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/Edge_Removal.bat | iex