@ -1,3 +1,4 @@
Import-Module -DisableNameChecking $PSScriptRoot \ . . \ lib \ " file-runner.psm1 "
Import-Module -DisableNameChecking $PSScriptRoot \ . . \ lib \ " title-templates.psm1 "
# Adapted from: https://youtu.be/qWESrvP_uU8
@ -8,35 +9,34 @@ Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"title-templates.psm1"
function Optimize-PrivacyAndPerformance ( ) {
# Initialize all Path variables used to Registry Tweaks
$ Global: PathToLMActivityHistory = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System "
$ Global: PathToLMAutoLogger = " HKLM:\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger "
$ Global: PathToLMDeliveryOptimizationCfg = " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config "
$ Global: PathToLMPoliciesAdvertisingInfo = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo "
$ Global: PathToLMPoliciesCloudContent = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent "
$ Global: PathToLMPoliciesGameDVR = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR "
$ Global: PathToLMPoliciesPsched = " HKLM:\SOFTWARE\Policies\Microsoft\Psched "
$ Global: PathToLMPoliciesSQMClient = " HKLM:\SOFTWARE\Policies\Microsoft\SQMClient\Windows "
$ Global: PathToLMPoliciesTelemetry = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection "
$ Global: PathToLMPoliciesTelemetry2 = " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection "
$ Global: PathToLMPoliciesToWifi = " HKLM:\Software\Microsoft\PolicyManager\default\WiFi "
$ Global: PathToLMPoliciesWindowsStore = " HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore "
$ Global: PathToLMPoliciesWindowsUpdate = " HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU "
$ Global: PathToLMPrefetchParams = " HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters "
$ Global: PathToLMWindowsTroubleshoot = " HKLM:\SOFTWARE\Microsoft\WindowsMitigation "
$ Global: PathToCUContentDeliveryManager = " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager "
$ Global: PathToCUDeviceAccessGlobal = " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global "
$ Global: PathToCUGameBar = " HKCU:\SOFTWARE\Microsoft\GameBar "
$ Global: PathToCUInputPersonalization = " HKCU:\SOFTWARE\Microsoft\InputPersonalization "
$ Global: PathToCUInputTIPC = " HKCU:\SOFTWARE\Microsoft\Input\TIPC "
$ Global: PathToCUOnlineSpeech = " HKCU:\SOFTWARE\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy "
$ Global: PathToCUPoliciesCloudContent = " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent "
$ Global: PathToCUSearch = " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search "
$ Global: PathToCUSiufRules = " HKCU:\SOFTWARE\Microsoft\Siuf\Rules "
$ PathToLMActivityHistory = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System "
$ PathToLMAutoLogger = " HKLM:\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger "
$ PathToLMDeliveryOptimizationCfg = " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config "
$ PathToLMPoliciesAdvertisingInfo = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo "
$ PathToLMPoliciesCloudContent = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent "
$ PathToLMPoliciesGameDVR = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR "
$ PathToLMPoliciesPsched = " HKLM:\SOFTWARE\Policies\Microsoft\Psched "
$ PathToLMPoliciesSQMClient = " HKLM:\SOFTWARE\Policies\Microsoft\SQMClient\Windows "
$ PathToLMPoliciesTelemetry = " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection "
$ PathToLMPoliciesTelemetry2 = " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection "
$ PathToLMPoliciesToWifi = " HKLM:\Software\Microsoft\PolicyManager\default\WiFi "
$ PathToLMPoliciesWindowsStore = " HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore "
$ PathToLMPoliciesWindowsUpdate = " HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU "
$ PathToLMPrefetchParams = " HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters "
$ PathToLMWindowsTroubleshoot = " HKLM:\SOFTWARE\Microsoft\WindowsMitigation "
$ PathToCUContentDeliveryManager = " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager "
$ PathToCUDeviceAccessGlobal = " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global "
$ PathToCUGameBar = " HKCU:\SOFTWARE\Microsoft\GameBar "
$ PathToCUInputPersonalization = " HKCU:\SOFTWARE\Microsoft\InputPersonalization "
$ PathToCUInputTIPC = " HKCU:\SOFTWARE\Microsoft\Input\TIPC "
$ PathToCUOnlineSpeech = " HKCU:\SOFTWARE\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy "
$ PathToCUPoliciesCloudContent = " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent "
$ PathToCUSearch = " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search "
$ PathToCUSiufRules = " HKCU:\SOFTWARE\Microsoft\Siuf\Rules "
Write-Title -Text " Privacy And Performance Tweaks "
Write-Section -Text " Personalization "
Write-Caption -Text " ? & ? & Start & Lockscreen "
Write-Caption -Text " Start & Lockscreen "
Write-Host " $( $EnableStatus [ 0 ] ) Show me the windows welcome experience after updates... "
Write-Host " $( $EnableStatus [ 0 ] ) 'Get fun facts and tips, etc. on lock screen'... "
@ -82,7 +82,6 @@ function Optimize-PrivacyAndPerformance() {
Write-Section -Text " Privacy -> Windows Permissions "
Write-Caption -Text " General "
Write-Host " $( $EnableStatus [ 0 ] ) Let apps use my advertising ID... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo " -Name " Enabled " -Type DWord -Value $Zero
If ( ! ( Test-Path " $PathToLMPoliciesAdvertisingInfo " ) ) {
@ -94,25 +93,22 @@ function Optimize-PrivacyAndPerformance() {
Set-ItemProperty -Path " HKCU:\Control Panel\International\User Profile " -Name " HttpAcceptLanguageOptOut " -Type DWord -Value $One
Write-Caption -Text " Speech "
# [@] (0 = Decline, 1 = Accept)
Write-Host " $( $EnableStatus [ 0 ] ) Online Speech Recognition... "
If ( ! ( Test-Path " $PathToCUOnlineSpeech " ) ) {
New-Item -Path " $PathToCUOnlineSpeech " -Force | Out-Null
}
# [@] (0 = Decline, 1 = Accept)
Set-ItemProperty -Path " $PathToCUOnlineSpeech " -Name " HasAccepted " -Type DWord -Value $Zero
Write-Caption -Text " Inking & Typing Personalization "
Set-ItemProperty -Path " $PathToCUInputPersonalization \TrainedDataStore " -Name " HarvestContacts " -Type DWord -Value $Zero
Set-ItemProperty -Path " $PathToCUInputPersonalization " -Name " RestrictImplicitInkCollection " -Type DWord -Value $One
Set-ItemProperty -Path " $PathToCUInputPersonalization " -Name " RestrictImplicitTextCollection " -Type DWord -Value $One
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Personalization\Settings " -Name " AcceptedPrivacyPolicy " -Type DWord -Value $Zero
Write-Caption -Text " Diagnostics & Feedback "
# [@] (0 = Security (Enterprise only), 1 = Basic Telemetry, 2 = Enhanced Telemetry, 3 = Full Telemetry)
Write-Host " $( $EnableStatus [ 0 ] ) telemetry... "
# [@] (0 = Security (Enterprise only), 1 = Basic Telemetry, 2 = Enhanced Telemetry, 3 = Full Telemetry)
Set-ItemProperty -Path " $PathToLMPoliciesTelemetry " -Name " AllowTelemetry " -Type DWord -Value $Zero
Set-ItemProperty -Path " $PathToLMPoliciesTelemetry2 " -Name " AllowTelemetry " -Type DWord -Value $Zero
Set-ItemProperty -Path " $PathToLMPoliciesTelemetry " -Name " AllowDeviceNameInTelemetry " -Type DWord -Value $Zero
@ -139,7 +135,6 @@ function Optimize-PrivacyAndPerformance() {
Set-ItemProperty -Path " $PathToCUSiufRules " -Name " NumberOfSIUFInPeriod " -Type DWord -Value $Zero
Write-Caption -Text " Activity History "
Write-Host " $( $EnableStatus [ 0 ] ) Activity History... "
$ActivityHistoryDisableOnZero = @ (
" EnableActivityFeed "
@ -155,33 +150,28 @@ function Optimize-PrivacyAndPerformance() {
Write-Section -Text " Privacy -> Apps Permissions "
Write-Caption -Text " Location "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " -Name " Value " -Value " Deny "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " -Name " Value " -Value " Deny "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44} " -Name " SensorPermissionState " -Type DWord -Value $Zero
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration " -Name " EnableStatus " -Type DWord -Value $Zero
Write-Caption -Text " Notifications "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userNotificationListener " -Name " Value " -Value " Deny "
Write-Caption -Text " App Diagnostics "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics " -Name " Value " -Value " Deny "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics " -Name " Value " -Value " Deny "
Write-Caption -Text " Account Info Access "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation " -Name " Value " -Value " Deny "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation " -Name " Value " -Value " Deny "
Write-Caption -Text " Other Devices "
# Disable sharing information with unpaired devices
Write-Host " [-][Priv&Perf] Denying device access... "
If ( ! ( Test-Path " $PathToCUDeviceAccessGlobal \LooselyCoupled " ) ) {
New-Item -Path " $PathToCUDeviceAccessGlobal \LooselyCoupled " -Force | Out-Null
}
# Disable sharing information with unpaired devices
Set-ItemProperty -Path " $PathToCUDeviceAccessGlobal \LooselyCoupled " -Name " Value " -Value " Deny "
ForEach ( $key in ( Get-ChildItem " $PathToCUDeviceAccessGlobal " ) ) {
If ( $key . PSChildName -EQ " LooselyCoupled " ) {
@ -192,50 +182,44 @@ function Optimize-PrivacyAndPerformance() {
}
Write-Caption -Text " Background Apps "
Write-Host " $( $EnableStatus [ 0 ] ) Background Apps... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications " -Name " GlobalUserDisabled " -Type DWord -Value $One
Set-ItemProperty -Path " $PathToCUSearch " -Name " BackgroundAppGlobalToggle " -Type DWord -Value $Zero
Write-Section -Text " Update & Security "
Write-Caption -Text " Windows Update "
Write-Host " [-][Priv&Perf] Disabling Automatic Download and Installation of Windows Updates... "
If ( ! ( Test-Path " $PathToLMPoliciesWindowsUpdate " ) ) {
New-Item -Path " $PathToLMPoliciesWindowsUpdate " -Force | Out-Null
}
# [@] (2 = Notify before download, 3 = Automatically download and notify of installation)
# [@] (4 = Automatically download and schedule installation, 5 = Automatic Updates is required and users can configure it)
Write-Host " [-][Priv&Perf] Disabling Automatic Download and Installation of Windows Updates... "
Set-ItemProperty -Path " $PathToLMPoliciesWindowsUpdate " -Name " AUOptions " -Type DWord -Value 2
# [@] (0 = Enable Automatic Updates, 1 = Disable Automatic Updates)
Write-Host " $( $EnableStatus [ 1 ] ) Automatic Updates... "
# [@] (0 = Enable Automatic Updates, 1 = Disable Automatic Updates)
Set-ItemProperty -Path " $PathToLMPoliciesWindowsUpdate " -Name " NoAutoUpdate " -Type DWord -Value $Zero
# [@] (0 = Every day, 1~7 = The days of the week from Sunday (1) to Saturday (7) (Only valid if AUOptions = 4))
Write-Host " [+][Priv&Perf] Setting Scheduled Day to Every day... "
# [@] (0 = Every day, 1~7 = The days of the week from Sunday (1) to Saturday (7) (Only valid if AUOptions = 4))
Set-ItemProperty -Path " $PathToLMPoliciesWindowsUpdate " -Name " ScheduledInstallDay " -Type DWord -Value 0
# [@] (0-23 = The time of day in 24-hour format)
Write-Host " [-][Priv&Perf] Setting Scheduled time to 03h00m... "
# [@] (0-23 = The time of day in 24-hour format)
Set-ItemProperty -Path " $PathToLMPoliciesWindowsUpdate " -Name " ScheduledInstallTime " -Type DWord -Value 3
Write-Host " [=] Enabling automatic driver updates... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching " -Name " SearchOrderConfig " -Type DWord -Value 1
Write-Host " $( $EnableStatus [ 1 ] ) Change Windows Updates to 'Notify to schedule restart'... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings " -Name " UxOption " -Type DWord -Value $One
# [@] (0 = Off, 1 = Local Network only, 2 = Local Network private peering only)
# [@] (3 = Local Network and Internet, 99 = Simply Download mode, 100 = Bypass mode)
Write-Host " $( $EnableStatus [ 1 ] ) Restricting Windows Update P2P downloads for Local Network only... "
If ( ! ( Test-Path " $PathToLMDeliveryOptimizationCfg " ) ) {
New-Item -Path " $PathToLMDeliveryOptimizationCfg " -Force | Out-Null
}
# [@] (0 = Off, 1 = Local Network only, 2 = Local Network private peering only)
# [@] (3 = Local Network and Internet, 99 = Simply Download mode, 100 = Bypass mode)
Set-ItemProperty -Path " $PathToLMDeliveryOptimizationCfg " -Name " DODownloadMode " -Type DWord -Value $One
Write-Caption -Text " Troubleshooting "
Write-Host " [+][Priv&Perf] Enabling Automatic Recommended Troubleshooting, then notify me... "
If ( ! ( Test-Path " $PathToLMWindowsTroubleshoot " ) ) {
New-Item -Path " $PathToLMWindowsTroubleshoot " -Force | Out-Null
@ -273,7 +257,13 @@ function Optimize-PrivacyAndPerformance() {
Set-ItemProperty -Path " $PathToLMPoliciesCloudContent " -Name " DisableThirdPartySuggestions " -Type DWord -Value $One
Set-ItemProperty -Path " $PathToLMPoliciesCloudContent " -Name " DisableWindowsConsumerFeatures " -Type DWord -Value $One
# Reference: https://forums.guru3d.com/threads/windows-10-registry-tweak-for-disabling-drivers-auto-update-controversy.418033/
Write-Host " $( $EnableStatus [ 0 ] ) automatic driver updates... "
# [@] (0 = Yes, do this automatically, 1 = No, let me choose what to do, Always install the best, 2 = [...] Install driver software from Windows Update, 3 = [...] Never install driver software from Windows Update
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata " -Name " PreventDeviceMetadataFromNetwork " -Type DWord -Value $One
# [@] (0 = Enhanced icons enabled, 1 = Enhanced icons disabled)
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching " -Name " SearchOrderConfig " -Type DWord -Value $One
If ( ! ( Test-Path " $PathToLMPoliciesSQMClient " ) ) {
New-Item -Path " $PathToLMPoliciesSQMClient " -Force | Out-Null
}
@ -302,23 +292,19 @@ function Optimize-PrivacyAndPerformance() {
Set-ItemProperty -Path " $PathToLMPoliciesToWifi \AllowAutoConnectToWiFiSenseHotspots " -Name " value " -Type DWord -Value $Zero
Write-Section -Text " Gaming "
Write-Host " $( $EnableStatus [ 0 ] ) Game Bar & Game DVR... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\PolicyManager\default\ApplicationManagement\AllowGameDVR " -Name " value " -Type DWord -Value $Zero
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR " -Name " AppCaptureEnabled " -Type DWord -Value $Zero
Set-ItemProperty -Path " HKCU:\System\GameConfigStore " -Name " GameDVR_Enabled " -Type DWord -Value $Zero
If ( ! ( Test-Path " $PathToLMPoliciesGameDVR " ) ) {
New-Item -Path " $PathToLMPoliciesGameDVR " -Force | Out-Null
$Scripts = @ ( " disable-game-bar-dvr.reg " )
If ( $Revert ) {
$Scripts = @ ( " enable-game-bar-dvr.reg " )
}
Set-ItemProperty -Path " $PathToLMPoliciesGameDVR " -Name " AllowGameDVR " -Type DWord -Value $Zero
Open-RegFilesCollection -RelativeLocation " src\utils " -Scripts $Scripts -DoneTitle " " -DoneMessage " " -NoDialog
Write-Host " $( $EnableStatus [ 1 ] ) game mode..."
Set-ItemProperty -Path " $PathToCUGameBar " -Name " AllowAutoGameMode " -Type DWord -Value $One
Set-ItemProperty -Path " $PathToCUGameBar " -Name " AutoGameModeEnabled " -Type DWord -Value $One
Write-Host " [=][Priv&Perf] Enabling game mode..."
Set-ItemProperty -Path " $PathToCUGameBar " -Name " AllowAutoGameMode " -Type DWord -Value 1
Set-ItemProperty -Path " $PathToCUGameBar " -Name " AutoGameModeEnabled " -Type DWord -Value 1
Write-Section -Text " System "
Write-Caption -Text " Display "
Write-Host " [+][Priv&Perf] Enable Hardware Accelerated GPU Scheduling... (Windows 10 20H1+ - Needs Restart) "
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers " -Name " HwSchMode " -Type DWord -Value 2
@ -334,7 +320,6 @@ function Optimize-PrivacyAndPerformance() {
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager " -Name " Preferences " -Type Binary -Value $preferences . Preferences
Write-Caption " Deleting useless registry keys... "
$KeysToDelete = @ (
# Remove Background Tasks
" HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y "
@ -370,10 +355,9 @@ function Optimize-PrivacyAndPerformance() {
}
Write-Title -Text " Performance Tweaks "
Write-Host " $( $EnableStatus [ 0 ] ) SysMain/Superfetch... "
# As SysMain was already disabled on the Services, just need to remove it's key
# [@] (0 = Disable SysMain, 1 = Enable when program is launched, 2 = Enable on Boot, 3 = Enable on everything)
Write-Host " $( $EnableStatus [ 0 ] ) SysMain/Superfetch... "
Set-ItemProperty -Path " $PathToLMPrefetchParams " -Name " EnableSuperfetch " -Type DWord -Value $Zero
Write-Host " $( $EnableStatus [ 0 ] ) Remote Assistance... "
@ -394,18 +378,16 @@ function Optimize-PrivacyAndPerformance() {
}
Set-ItemProperty -Path " $PathToLMPoliciesPsched " -Name " NonBestEffortLimit " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile " -Name " NetworkThrottlingIndex " -Type DWord -Value 0xffffffff
# [@] (2 = Disable, 4 = Enable)
Write-Host " [=][Priv&Perf] Enabling Windows Store apps Automatic Updates... "
If ( ! ( Test-Path " $PathToLMPoliciesWindowsStore " ) ) {
New-Item -Path " $PathToLMPoliciesWindowsStore " -Force | Out-Null
}
If ( ( Get-Item " $PathToLMPoliciesWindowsStore " ) . GetValueNames ( ) -like " AutoDownload " ) {
Remove-ItemProperty -Path " $PathToLMPoliciesWindowsStore " -Name " AutoDownload "
Remove-ItemProperty -Path " $PathToLMPoliciesWindowsStore " -Name " AutoDownload " # [@] (2 = Disable, 4 = Enable)
}
Write-Section -Text " Power Plan Tweaks "
Write-Host " [+][Priv&Perf] Setting Power Plan to High Performance... "
powercfg -setactive 8c5e7fda -e8bf - 4a96 - 9a85 -a6e23a8c635c
@ -415,9 +397,8 @@ function Optimize-PrivacyAndPerformance() {
Write-Section -Text " Network & Internet "
Write-Caption -Text " Proxy "
# Code from: https://www.reddit.com/r/PowerShell/comments/5iarip/set_proxy_settings_to_automatically_detect/?utm_source=share&utm_medium=web2x&context=3
Write-Host " [-][Priv&Perf] Fixing Edge slowdown by NOT Automatically Detecting Settings... "
# Code from: https://www.reddit.com/r/PowerShell/comments/5iarip/set_proxy_settings_to_automatically_detect/?utm_source=share&utm_medium=web2x&context=3
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections'
$data = ( Get-ItemProperty -Path $key -Name DefaultConnectionSettings ) . DefaultConnectionSettings
$data [ 8 ] = 3
@ -434,7 +415,6 @@ function Main() {
If ( ( $Revert ) ) {
Write-Warning " [<][Priv&Perf] Reverting: $Revert . "
$Zero = 1
$One = 0
$EnableStatus = @ (