mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 22:11:30 -06:00
Added option for remove microsoft edge (#224)
* Added option for remove microsoft edge * Update winutil.ps1 Co-authored-by: Chris Titus <dfm.titus@gmail.com>
This commit is contained in:
parent
d977fcbc81
commit
0b53287d6f
@ -190,8 +190,8 @@
|
|||||||
<CheckBox Name="MiscTweaksDisableNotifications" Content="Disable Notification" Margin="5,0"/>
|
<CheckBox Name="MiscTweaksDisableNotifications" Content="Disable Notification" Margin="5,0"/>
|
||||||
<CheckBox Name="MiscTweaksDisableTPMCheck" Content="Disable TPM on Update" 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="EssTweaksDeBloat" Content="Remove ALL MS Store Apps" 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"/>
|
<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"/>
|
<Button Name="tweaksbutton" Background="AliceBlue" Content="Run Tweaks" Margin="20,10,20,0"/>
|
||||||
<Button Name="undoall" Background="AliceBlue" Content="Undo All Tweaks" Margin="20,5"/>
|
<Button Name="undoall" Background="AliceBlue" Content="Undo All Tweaks" Margin="20,5"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
12
winutil.ps1
12
winutil.ps1
@ -574,6 +574,7 @@ $WPFdesktop.Add_Click({
|
|||||||
$WPFEssTweaksAH.IsChecked = $true
|
$WPFEssTweaksAH.IsChecked = $true
|
||||||
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
|
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
|
||||||
$WPFEssTweaksDeBloat.IsChecked = $false
|
$WPFEssTweaksDeBloat.IsChecked = $false
|
||||||
|
$WPFEssTweaksRemoveEdge.IsChecked = $false
|
||||||
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
||||||
$WPFEssTweaksDVR.IsChecked = $true
|
$WPFEssTweaksDVR.IsChecked = $true
|
||||||
$WPFEssTweaksHiber.IsChecked = $true
|
$WPFEssTweaksHiber.IsChecked = $true
|
||||||
@ -599,6 +600,7 @@ $WPFlaptop.Add_Click({
|
|||||||
$WPFEssTweaksAH.IsChecked = $true
|
$WPFEssTweaksAH.IsChecked = $true
|
||||||
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
|
$WPFEssTweaksDeleteTempFiles.IsChecked = $true
|
||||||
$WPFEssTweaksDeBloat.IsChecked = $false
|
$WPFEssTweaksDeBloat.IsChecked = $false
|
||||||
|
$WPFEssTweaksRemoveEdge.IsChecked = $false
|
||||||
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
||||||
$WPFEssTweaksDVR.IsChecked = $true
|
$WPFEssTweaksDVR.IsChecked = $true
|
||||||
$WPFEssTweaksHiber.IsChecked = $false
|
$WPFEssTweaksHiber.IsChecked = $false
|
||||||
@ -624,6 +626,7 @@ $WPFminimal.Add_Click({
|
|||||||
$WPFEssTweaksAH.IsChecked = $false
|
$WPFEssTweaksAH.IsChecked = $false
|
||||||
$WPFEssTweaksDeleteTempFiles.IsChecked = $false
|
$WPFEssTweaksDeleteTempFiles.IsChecked = $false
|
||||||
$WPFEssTweaksDeBloat.IsChecked = $false
|
$WPFEssTweaksDeBloat.IsChecked = $false
|
||||||
|
$WPFEssTweaksRemoveEdge.IsChecked = $false
|
||||||
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
$WPFEssTweaksDiskCleanup.IsChecked = $false
|
||||||
$WPFEssTweaksDVR.IsChecked = $false
|
$WPFEssTweaksDVR.IsChecked = $false
|
||||||
$WPFEssTweaksHiber.IsChecked = $false
|
$WPFEssTweaksHiber.IsChecked = $false
|
||||||
@ -1081,9 +1084,8 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
If ( $WPFMiscTweaksUTC.IsChecked -eq $true ) {
|
If ( $WPFMiscTweaksUTC.IsChecked -eq $true ) {
|
||||||
Write-Host "Setting BIOS time to UTC..."
|
Write-Host "Setting BIOS time to UTC..."
|
||||||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 1
|
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 1
|
||||||
$WPFMiscTweaksUTC.IsChecked
|
$WPFMiscTweaksUTC.IsChecked = $false
|
||||||
}
|
}
|
||||||
|
|
||||||
If ( $WPFMiscTweaksDisplay.IsChecked -eq $true ) {
|
If ( $WPFMiscTweaksDisplay.IsChecked -eq $true ) {
|
||||||
Write-Host "Adjusting visual effects for performance..."
|
Write-Host "Adjusting visual effects for performance..."
|
||||||
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 0
|
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 0
|
||||||
@ -1099,7 +1101,11 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
Write-Host "Adjusted visual effects for performance"
|
Write-Host "Adjusted visual effects for performance"
|
||||||
$WPFMiscTweaksDisplay.IsChecked = $false
|
$WPFMiscTweaksDisplay.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
|
||||||
|
$WPFEssTweaksRemoveEdge.IsChecked = $false
|
||||||
|
}
|
||||||
If ( $WPFEssTweaksDeBloat.IsChecked -eq $true ) {
|
If ( $WPFEssTweaksDeBloat.IsChecked -eq $true ) {
|
||||||
$Bloatware = @(
|
$Bloatware = @(
|
||||||
#Unnecessary Windows 10 AppX Apps
|
#Unnecessary Windows 10 AppX Apps
|
||||||
|
Loading…
Reference in New Issue
Block a user