diff --git a/src/scripts/Optimize-Privacy.ps1 b/src/scripts/Optimize-Privacy.ps1 index 652a44b8..c69c8211 100644 --- a/src/scripts/Optimize-Privacy.ps1 +++ b/src/scripts/Optimize-Privacy.ps1 @@ -46,6 +46,9 @@ function Optimize-Privacy() { $PathToLMPoliciesSQMClient = "HKLM:\SOFTWARE\Policies\Microsoft\SQMClient\Windows" $PathToLMPoliciesWifi = "HKLM:\Software\Microsoft\PolicyManager\default\WiFi" $PathToLMPoliciesWindowsUpdate = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" + $PathToLMUninstallMSEdge = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" + $PathToLMUninstallMSEdgeUpdate = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" + $PathToLMUninstallMSEdgeWebView = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" $PathToLMWindowsTroubleshoot = "HKLM:\SOFTWARE\Microsoft\WindowsMitigation" Write-Title "Privacy Tweaks" @@ -246,6 +249,9 @@ function Optimize-Privacy() { Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'WiFi Sense: Shared HotSpot Auto-Connect'..." Set-ItemPropertyVerified -Path "$PathToLMPoliciesWifi\AllowAutoConnectToWiFiSenseHotspots" -Name "value" -Type DWord -Value $Zero + Write-Status -Types $EnableStatus[1].Symbol, $TweakType -Status "$($EnableStatus[1].Status) uninstall button to Microsoft Edge..." + Set-ItemPropertyVerified -Path "$PathToLMUninstallMSEdge", "$PathToLMUninstallMSEdgeUpdate", "$PathToLMUninstallMSEdgeWebView" -Name "NoRemove" -Type DWord -Value $Zero + Write-Caption "Deleting useless registry keys..." $KeysToDelete = @( # Remove Background Tasks diff --git a/src/scripts/Remove-MSEdge.ps1 b/src/scripts/Remove-MSEdge.ps1 index cdad1ce5..eb40e625 100644 --- a/src/scripts/Remove-MSEdge.ps1 +++ b/src/scripts/Remove-MSEdge.ps1 @@ -6,6 +6,12 @@ Import-Module -DisableNameChecking "$PSScriptRoot\..\lib\ui\Show-MessageDialog.p function Remove-MSEdge() { $PathToLMEdgeUpdate = "HKLM:\SOFTWARE\Microsoft\EdgeUpdate" + $PathToLMUninstallMSEdge = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" + $PathToLMUninstallMSEdgeUpdate = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" + $PathToLMUninstallMSEdgeWebView = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" + + Write-Status -Types "+" -Status "Enabling uninstall button to Microsoft Edge..." + Set-ItemPropertyVerified -Path "$PathToLMUninstallMSEdge", "$PathToLMUninstallMSEdgeUpdate", "$PathToLMUninstallMSEdgeWebView" -Name "NoRemove" -Type DWord -Value 0 Write-Status -Types "@" -Status "Stopping all 'msedge' processes before uninstalling..." Get-Process -Name msedge | Stop-Process -PassThru -Force