From bf1d455f80c3e06c769cf8288b975b96bda47046 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 29 Jun 2022 21:47:37 -0500 Subject: [PATCH] Fix Long Shutdown and Restart set NOT to clear page file on shutdown --- winutil.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index bf395edd..b1e92251 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -747,7 +747,7 @@ $WPFtweaksbutton.Add_Click({ Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "AutoEndTasks" -Type DWord -Value 1 Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "LowLevelHooksTimeout" -Type DWord -Value 00001000 Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "WaitToKillServiceTimeout" -Type DWord -Value 00002000 - Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "ClearPageFileAtShutdown" -Type DWord -Value 00000001 + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "ClearPageFileAtShutdown" -Type DWord -Value 00000000 Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Ndu" -Name "Start" -Type DWord -Value 00000004 Set-ItemProperty -Path "HKLM:\Control Panel\Mouse" -Name "MouseHoverTime" -Type DWord -Value 00000010 @@ -1486,4 +1486,4 @@ $WPFUpdatessecurity.Add_Click({ #=========================================================================== # Shows the form #=========================================================================== -$Form.ShowDialog() | out-null \ No newline at end of file +$Form.ShowDialog() | out-null