emergency fix from bad values from runspace merge

This commit is contained in:
Chris Titus 2022-10-18 15:41:08 -05:00
parent c6cdf77312
commit a29a27eb2c
2 changed files with 9 additions and 11 deletions

View File

@ -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"
},
{

View File

@ -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