try to prevent search host from running again before loading settings.dat

This commit is contained in:
zoicware
2026-02-04 13:17:55 -05:00
committed by GitHub
parent 1fd479c1f7
commit 044b4e64a1

View File

@@ -1040,6 +1040,11 @@ Windows Registry Editor Version 5.00
Value = @('1', '0')[$revert] # 1 = disable 0 = enable Value = @('1', '0')[$revert] # 1 = disable 0 = enable
Type = '5f5e10b' Type = '5f5e10b'
} }
#search host likes to come back and sometimes prevents the dat file from being loaded
if (Get-Process -Name SearchHost -ErrorAction SilentlyContinue) {
Stop-Process -Name @('SearchHost', 'AppActions') -Force -ErrorAction SilentlyContinue
}
$setting | Set-UwpAppRegistryEntry -FilePath $settingsDat $setting | Set-UwpAppRegistryEntry -FilePath $settingsDat
} }