Intune: Turn Off Search Companion Content File Updates

πŸ’Ό Management Samenvatting

Turn off Search Companion updates = disable legacy Windows XP search feature updates (irrelevant on Windows 10/11).

Aanbeveling
IMPLEMENT (compliance only)
Risico zonder
N/A
Risk Score
10/10
Implementatie
1u (tech: 1u)
Van toepassing op:
βœ“ Windows 10
βœ“ Windows 11

Search Companion = LEGACY (Windows XP era): Windows XP: 'Search Companion' (animated dog helper), Windows 10/11: Modern search (Cortana/Windows Search - completely different), This policy: Legacy remnant (controls XP feature that doesn't exist on modern Windows). Recommendation: Enable policy (turn OFF updates) β†’ maar effect = NONE (feature doesn't exist). Compliance: CIS Benchmark includes (legacy checklist item).

PowerShell Modules Vereist
Primary API: Microsoft Graph API
Connection: Connect-MgGraph
Required Modules: Microsoft.Graph.DeviceManagement

Implementatie

Turn off updates: Policy: Turn off Search Companion content file updates: Enabled, Effect on Windows 10/11: NONE (Search Companion doesn't exist), Compliance: CIS checklist item (historical reasons).

Vereisten

  1. Windows 10/11 (policy has NO effect)
  2. Intune subscription

Implementatie

Intune Settings Catalog: Search β†’ Turn off Search Companion content file updates: Enabled. Effect: None (legacy policy for Windows XP feature).

Compliance

CIS Windows Benchmark (legacy item).

Monitoring

Gebruik PowerShell-script turn-off-search-companion-content-file-updates-is-set-to-enabled.ps1 (functie Invoke-Monitoring) – Controleren.

Remediatie

Gebruik PowerShell-script turn-off-search-companion-content-file-updates-is-set-to-enabled.ps1 (functie Invoke-Remediation) – Herstellen.

Compliance & Frameworks

Automation

Gebruik het onderstaande PowerShell script om deze security control te monitoren en te implementeren. Het script bevat functies voor zowel monitoring (-Monitoring) als remediation (-Remediation).

PowerShell
<# .SYNOPSIS Intune Update Management: Turn Off Search Companion Updates .DESCRIPTION CIS - Search Companion content updates moeten disabled. .NOTES Filename: turn-off-search-companion-updates.ps1|Author: Nederlandse Baseline voor Veilige Cloud|Registry: HKLM:\SOFTWARE\Policies\Microsoft\SearchCompanion\DisableContentFileUpdates|Expected: 1 #> #Requires -Version 5.1 #Requires -RunAsAdministrator [CmdletBinding()]param([switch]$WhatIf, [switch]$Monitoring, [switch]$Remediation, [switch]$Revert) $ErrorActionPreference = 'Stop'; $RegPath = "HKLM:\SOFTWARE\Policies\Microsoft\SearchCompanion"; $RegName = "DisableContentFileUpdates"; $ExpectedValue = 1 function Connect-RequiredServices { $p = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()); return $p.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) } function Test-Compliance { $r = [PSCustomObject]@{ScriptName = "search-companion-updates.ps1"; PolicyName = "Search Companion Updates"; IsCompliant = $false; CurrentValue = $null; ExpectedValue = "Disabled"; Details = @() }; function Invoke-Revert { Remove-ItemProperty -Path $RegPath -Name $RegName -ErrorAction SilentlyContinue } try { if (Test-Path $RegPath) { $v = Get-ItemProperty -Path $RegPath -Name $RegName -ErrorAction SilentlyContinue; if ($v) { $r.CurrentValue = $v.$RegName; if ($r.CurrentValue -eq $ExpectedValue) { $r.IsCompliant = $true; $r.Details += "Search updates disabled" }else { $r.Details += "Search updates enabled" } }else { $r.IsCompliant = $true; $r.Details += "Default" } }else { $r.IsCompliant = $true; $r.Details += "Default" } }catch { $r.Details += "Error: $($_.Exception.Message)" }; return $r } function Invoke-Remediation { if (-not(Test-Path $RegPath)) { New-Item -Path $RegPath -Force | Out-Null }; Set-ItemProperty -Path $RegPath -Name $RegName -Value $ExpectedValue -Type DWord -Force; Write-Host "Search Companion updates disabled" -ForegroundColor Green } function Invoke-Monitoring { $r = Test-Compliance; Write-Host "`n$($r.PolicyName): $(if($r.IsCompliant){'COMPLIANT'}else{'NON-COMPLIANT'})" -ForegroundColor $(if ($r.IsCompliant) { 'Green' }else { 'Red' }); return $r } function Invoke-Revert { Remove-ItemProperty -Path $RegPath -Name $RegName -ErrorAction SilentlyContinue } try { if (-not(Connect-RequiredServices)) { exit 1 }; if ($Monitoring) { $r = Invoke-Monitoring; exit $(if ($r.IsCompliant) { 0 }else { 1 }) }elseif ($Remediation) { if (-not $WhatIf) { Invoke-Remediation } }elseif ($Revert) { Invoke-Revert }else { $r = Test-Compliance; exit $(if ($r.IsCompliant) { 0 }else { 1 }) } }catch { Write-Error $_; exit 1 }

Risico zonder implementatie

Risico zonder implementatie
N/A: N/A - Legacy policy for Windows XP feature (no effect on Windows 10/11).

Management Samenvatting

Turn off Search Companion updates = LEGACY policy (Windows XP). No effect on Windows 10/11. CIS compliance checkbox. Implementatie: 1 uur.