Intune: Disable Windows Insider Preview Builds

πŸ’Ό Management Samenvatting

Disable Windows Insider Preview builds on production devices - prevents beta software (unstable, buggy, data loss risk).

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

Windows Insider = BETA software: Preview builds: Pre-release Windows features (unfinished code), Risks: System crashes (blue screens), Data corruption, Application incompatibility, Performance issues, Privacy: Telemetry collection (extensive diagnostic data β†’ Microsoft). Production devices: NEVER run Insider builds (stability required), Test lab: Dedicated Insider devices (isolated testing). User enrollment: Some users join Insider (curiosity) β†’ production device becomes unstable.

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

Implementatie

Disable Insider: Policy: Manage preview builds: Disable preview builds, Effect: Users CANNOT enroll in Windows Insider Program, Insider settings: Grayed out in Windows Settings, Production protection: Only stable GA releases.

Vereisten

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

Implementatie

Intune: Windows Update ring β†’ Manage preview builds: Disable preview builds. Effect: Insider enrollment blocked. Test lab: Separate policy (allow Insider) for dedicated test devices.

Compliance

CIS Windows Benchmark L1, BIO 12.06, ISO 27001 A.12.6.2.

Monitoring

Gebruik PowerShell-script manage-preview-builds-is-set-to-disable-preview-builds.ps1 (functie Invoke-Monitoring) – Controleren.

Remediatie

Gebruik PowerShell-script manage-preview-builds-is-set-to-disable-preview-builds.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: Disable Preview Builds .DESCRIPTION CIS - Preview builds (Insider) moeten disabled in productie. .NOTES Filename: disable-preview-builds.ps1|Author: Nederlandse Baseline voor Veilige Cloud|Registry: HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\ManagePreviewBuilds|Expected: 1 (Disabled) #> #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 = "ManagePreviewBuilds"; $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 = "disable-preview-builds.ps1"; PolicyName = "Preview Builds"; 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 += "Preview builds disabled" }else { $r.Details += "Preview builds: $($v.$RegName)" } }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 "Preview builds 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
Medium: Medium: Insider builds on production = crashes, data corruption, instability.

Management Samenvatting

Disable Windows Insider Preview builds. Production stability. Beta software blocked. Test lab: Separate devices. Implementatie: 1-2 uur.