Intune: Windows Update Branch Readiness Level

πŸ’Ό Management Samenvatting

Windows Update branch readiness = servicing channel selection - General Availability Channel (recommended voor production).

Aanbeveling
IMPLEMENT
Risico zonder
Low
Risk Score
3/10
Implementatie
2u (tech: 1u)
Van toepassing op:
βœ“ Windows 10
βœ“ Windows 11

Servicing channels: Windows Insider (Preview builds): Pre-release features (bleeding-edge), HIGH risk (bugs, instability), NOT for production, Semi-Annual Channel (deprecated Windows 10): Feature updates twice/year, General Availability Channel (Windows 11): Feature updates once/year (stable), RECOMMENDED for production. Production choice: General Availability Channel = Stable releases (Microsoft testing), Lower risk (bug-free compared to Insider), Sufficient features (annual updates adequate).

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

Implementatie

Branch readiness: Policy: Select when Preview Builds and Feature Updates are received: General Availability Channel, Effect: Devices receive stable production releases (no Insider builds), Combined with: Feature update deferral (180 days) - double stability (GA + deferral).

Vereisten

  1. Intune subscription
  2. Windows 10/11
  3. Production devices (NOT test lab)

Implementatie

Intune: Devices β†’ Windows Updates β†’ Update rings β†’ Select when updates are received: General Availability Channel (recommended). Combine: Feature deferral 180 days.

Compliance

CIS Windows Benchmark, BIO 12.06, ISO 27001 A.12.6.1.

Monitoring

Gebruik PowerShell-script windows-update-branch-readiness.ps1 (functie Invoke-Monitoring) – Controleren.

Remediatie

Gebruik PowerShell-script windows-update-branch-readiness.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: Branch Readiness Level .DESCRIPTION CIS - Windows Update branch moet Semi-Annual Channel (SAC) voor stabiliteit. .NOTES Filename: windows-update-branch-readiness.ps1|Author: Nederlandse Baseline voor Veilige Cloud|Registry: HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\BranchReadinessLevel|Expected: 32 (SAC) #> #Requires -Version 5.1 #Requires -RunAsAdministrator [CmdletBinding()]param([switch]$WhatIf, [switch]$Monitoring, [switch]$Remediation, [switch]$Revert) $ErrorActionPreference = 'Stop'; $RegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate"; $RegName = "BranchReadinessLevel"; $ExpectedValue = 32 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 = "branch-readiness.ps1"; PolicyName = "Branch Readiness"; IsCompliant = $false; CurrentValue = $null; ExpectedValue = "SAC (32)"; 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 += "Branch: SAC" }else { $r.Details += "Branch: $($v.$RegName)" } }else { $r.IsCompliant = $true; $r.Details += "Default: SAC" } }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 "Branch: Semi-Annual Channel (SAC)" -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
Low: Low: Insider builds on production = instability (bugs, crashes).

Management Samenvatting

Windows Update: General Availability Channel (production). Stable releases. Combined with 180-day deferral. Implementatie: 1-2 uur.