Intune: Configure Windows Update Pause Behavior

πŸ’Ό Management Samenvatting

Configure Windows Update pause behavior via Intune - ADMIN-controlled pause (maintenance windows) vs USER pause (blocked via separate policy).

Aanbeveling
CONFIGURE (admin-controlled)
Risico zonder
Low
Risk Score
3/10
Implementatie
5u (tech: 2u)
Van toepassing op:
βœ“ Windows 10
βœ“ Windows 11

Pause use cases: Admin-controlled pause: Planned maintenance window (system upgrades, testing), Major event (conference, product launch - no disruption), Emergency freeze (critical bug in update - Microsoft advisory). User pause (BLOCKED): Users pause β†’ forget β†’ months unpatched (security risk). This policy: Admin pause configuration (HOW to pause when needed), NOT user pause blocking (separate policy: 'block-pause-updates-ability').

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

Implementatie

Admin pause configuration: Maximum pause duration: 35 days (Windows 10/11 limit), Pause scope: Feature updates, quality updates, OR both, Resume: Automatic after duration OR manual (admin), Use case: Maintenance window: Pause 7 days β†’ complete system migration β†’ resume.

Vereisten

  1. Intune subscription
  2. Windows 10/11
  3. Change management: Documented pause procedures (when/why to pause)
  4. User pause: BLOCKED (separate policy)

Implementatie

Intune: Windows Update ring β†’ Pause updates: Configure maximum pause duration (7-35 days). Use case: Admin initiates pause via Intune (maintenance window). User pause: Blocked via 'block-pause-updates-ability' policy.

Compliance

BIO 12.06 (Change management), ISO 27001 A.12.6.1.

Monitoring

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

Remediatie

Gebruik PowerShell-script windows-update-pause.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: Block Update Pause .DESCRIPTION CIS - Users mogen updates NIET pauzeren. .NOTES Filename: windows-update-pause.ps1|Author: Nederlandse Baseline voor Veilige Cloud|Registry: HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\SetDisablePauseUXAccess|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\Windows\WindowsUpdate"; $RegName = "SetDisablePauseUXAccess"; $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 = "windows-update-pause.ps1"; PolicyName = "Block Update Pause"; IsCompliant = $false; CurrentValue = $null; ExpectedValue = "Blocked"; 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 += "Update pause blocked" }else { $r.Details += "Update pause allowed" } }else { $r.Details += "Niet geconfigureerd" } }else { $r.Details += "Niet geconfigureerd" } }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 "Update pause blocked" -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: No pause mechanism = cannot handle maintenance windows.

Management Samenvatting

Configure admin-controlled pause (maintenance windows). Max 7-35 days. User pause: BLOCKED (separate policy). Implementatie: 2-5 uur.