From a29a27eb2ca440a8f77cba4a5688359fcbe25cff Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 18 Oct 2022 15:41:08 -0500 Subject: [PATCH] emergency fix from bad values from runspace merge --- config/tweaks.json | 11 ++--------- winutil.ps1 | 9 +++++++-- 2 files changed, 9 insertions(+), 11 deletions(-) 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