|
@ -1341,13 +1341,13 @@ function TailoredExperiences |
|
|
|
|
|
|
|
|
<# |
|
|
<# |
|
|
.SYNOPSIS |
|
|
.SYNOPSIS |
|
|
Bing search in the Start Menu (for the USA only) |
|
|
Bing search in the Start Menu |
|
|
|
|
|
|
|
|
.PARAMETER Disable |
|
|
.PARAMETER Disable |
|
|
Disable Bing search in the Start Menu (for the USA only) |
|
|
Disable Bing search in the Start Menu |
|
|
|
|
|
|
|
|
.PARAMETER Enable |
|
|
.PARAMETER Enable |
|
|
Enable Bing search in the Start Menu (for the USA only) |
|
|
Enable Bing search in the Start Menu |
|
|
|
|
|
|
|
|
.EXAMPLE |
|
|
.EXAMPLE |
|
|
BingSearch -Disable |
|
|
BingSearch -Disable |
|
@ -1380,8 +1380,6 @@ function BingSearch |
|
|
switch ($PSCmdlet.ParameterSetName) |
|
|
switch ($PSCmdlet.ParameterSetName) |
|
|
{ |
|
|
{ |
|
|
"Disable" |
|
|
"Disable" |
|
|
{ |
|
|
|
|
|
if ((Get-WinHomeLocation).GeoId -eq 244) |
|
|
|
|
|
{ |
|
|
{ |
|
|
if (-not (Test-Path -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer)) |
|
|
if (-not (Test-Path -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer)) |
|
|
{ |
|
|
{ |
|
@ -1389,15 +1387,11 @@ function BingSearch |
|
|
} |
|
|
} |
|
|
New-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -PropertyType DWord -Value 1 -Force |
|
|
New-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -PropertyType DWord -Value 1 -Force |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
"Enable" |
|
|
"Enable" |
|
|
{ |
|
|
|
|
|
if ((Get-WinHomeLocation).GeoId -eq 244) |
|
|
|
|
|
{ |
|
|
{ |
|
|
Remove-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -Force -ErrorAction Ignore |
|
|
Remove-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -Force -ErrorAction Ignore |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
#endregion Privacy & Telemetry |
|
|
#endregion Privacy & Telemetry |
|
|
|
|
|
|
|
|