From 6bbbf715cf3e1ea218240e832ab981eb4537bb47 Mon Sep 17 00:00:00 2001 From: Caglar Yalcin Date: Mon, 7 Oct 2024 09:39:07 +0300 Subject: [PATCH] v4.15.2 - 24h2 compatibility --- set.psm1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/set.psm1 b/set.psm1 index 9f996c4..b4ea2b8 100644 --- a/set.psm1 +++ b/set.psm1 @@ -492,7 +492,7 @@ Function SystemSettings { $shellPath = Join-Path $bag.PSPath "Shell" if (Test-Path $shellPath) { - $subKeys = Get-ChildItem -Path $shellPath + $subKeys = Get-ChildItem -Path $shellPath -Recurse foreach ($subKey in $subKeys) { $subKeyPath = $subKey.PSPath @@ -666,7 +666,9 @@ Function SystemSettings { Function DisableBingSearchExtension { Write-Host "Disabling extension of Windows search with Bing..." -NoNewline - + + $bingsearch = "HKCU:\Software\Microsoft\Windows\CurrentVersion\SearchSettings" + if (-not (Test-Path $bingsearch)) { New-Item -Path $bingsearch -Force *>$null } @@ -1668,8 +1670,8 @@ Function SystemSettings { Set-ItemProperty -Path $registryPath -Name "HideRecommendedSection" -Type DWord -Value 1 # Add Phone link to the Start Menu - New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe" -Force - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe" -Name "IsEnabled" -Value 1 -PropertyType DWord + New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe" -Force *>$null + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe" -Name "IsEnabled" -Type DWord -Value 1 # Remove Quick Actions from the Control Center #laptop