feat: Disable Edge startup boost + running in background

- Frees a great amount of RAM after closing Microsoft Edge
- Edge will take a few seconds or miliseconds to open depending on your hardware, but it's worth it
main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent 7cd04156a7
commit 760dc674bd
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -35,6 +35,7 @@ function Optimize-Performance() {
# Initialize all Path variables used to Registry Tweaks # Initialize all Path variables used to Registry Tweaks
$PathToLMMultimediaSystemProfile = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" $PathToLMMultimediaSystemProfile = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile"
$PathToLMMultimediaSystemProfileOnGameTasks = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" $PathToLMMultimediaSystemProfileOnGameTasks = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games"
$PathToLMPoliciesEdge = "HKLM:\SOFTWARE\Policies\Microsoft\Edge"
$PathToLMPoliciesPsched = "HKLM:\SOFTWARE\Policies\Microsoft\Psched" $PathToLMPoliciesPsched = "HKLM:\SOFTWARE\Policies\Microsoft\Psched"
$PathToLMPoliciesWindowsStore = "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore" $PathToLMPoliciesWindowsStore = "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore"
$PathToUsersControlPanelDesktop = "Registry::HKEY_USERS\.DEFAULT\Control Panel\Desktop" $PathToUsersControlPanelDesktop = "Registry::HKEY_USERS\.DEFAULT\Control Panel\Desktop"
@ -69,6 +70,14 @@ function Optimize-Performance() {
Remove-ItemProperty -Path "$PathToLMPoliciesWindowsStore" -Name "AutoDownload" # [@] (2 = Disable, 4 = Enable) Remove-ItemProperty -Path "$PathToLMPoliciesWindowsStore" -Name "AutoDownload" # [@] (2 = Disable, 4 = Enable)
} }
Write-Section "Microsoft Edge Tweaks"
Write-Caption "System and Performance"
Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) Edge Startup boost..."
Set-ItemPropertyVerified -Path "$PathToLMPoliciesEdge" -Name "StartupBoostEnabled" -Type DWord -Value $Zero
Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) run extensions and apps when Edge is closed..."
Set-ItemPropertyVerified -Path "$PathToLMPoliciesEdge" -Name "BackgroundModeEnabled" -Type DWord -Value $Zero
Write-Section "Power Plan Tweaks" Write-Section "Power Plan Tweaks"
Write-Status -Types "+", $TweakType -Status "Setting Power Plan to High Performance..." Write-Status -Types "+", $TweakType -Status "Setting Power Plan to High Performance..."

@ -184,7 +184,7 @@ function Register-PersonalTweaksList() {
Set-ItemPropertyVerified -Path "$PathToCUAccessibility\ToggleKeys" -Name "Flags" -Value "58" Set-ItemPropertyVerified -Path "$PathToCUAccessibility\ToggleKeys" -Name "Flags" -Value "58"
Write-Section "Microsoft Edge Policies" Write-Section "Microsoft Edge Policies"
Write-Caption "Privacy, search and services / Address bar and search" Write-Caption "Privacy, search and services -> Address bar and search"
Write-Status -Types "*", $TweakType -Status "Show me search and site suggestions using my typed characters..." Write-Status -Types "*", $TweakType -Status "Show me search and site suggestions using my typed characters..."
Remove-ItemProperty -Path "$PathToCUPoliciesEdge", "$PathToLMPoliciesEdge" -Name "SearchSuggestEnabled" -Force -ErrorAction SilentlyContinue Remove-ItemProperty -Path "$PathToCUPoliciesEdge", "$PathToLMPoliciesEdge" -Name "SearchSuggestEnabled" -Force -ErrorAction SilentlyContinue

Loading…
Cancel
Save