diff --git a/config/tweaks.json b/config/tweaks.json index ee84fdb4..7f7bad4d 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -723,13 +723,6 @@ "value": "5000", "type": "Dword" }, - { - "Path": "HKLM:\\Control Panel\\Desktop", - "OriginalValue": "1", - "name": "HungAppTimeout", - "value": "4000", - "type": "Dword" - }, { "Path": "HKLM:\\Control Panel\\Desktop", "OriginalValue": "1", @@ -753,9 +746,9 @@ }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management", - "OriginalValue": "1", + "OriginalValue": "0", "name": "ClearPageFileAtShutdown", - "value": "00000001", + "value": "00000000", "type": "Dword" }, { diff --git a/winutil.ps1 b/winutil.ps1 index cde04208..e7f8721e 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -623,8 +623,13 @@ Version 0.1 Write-Logs -Level INFO -Message "Finished Scripts" -LogPath $sync.logfile } - - Write-Logs -Level INFO -Message "Tweaks finished" -LogPath $sync.logfile + # + # Fix bad tweaks made from previous versions + # + Remove-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "HungAppTimeout" -ErrorAction SilentlyContinue + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "ClearPageFileAtShutdown" -Type DWord -Value 0 + + Write-Logs -Level INFO -Message "Tweaks finished" -LogPath $sync.logfile if($sync["Form"]){ $sync.taskrunning = $false