Skip to content

Instantly share code, notes, and snippets.

@Digressive
Created December 14, 2021 03:11
Show Gist options
  • Save Digressive/c904e870a531315619f2f547315543e5 to your computer and use it in GitHub Desktop.
Save Digressive/c904e870a531315619f2f547315543e5 to your computer and use it in GitHub Desktop.
Change registry settings to set Windows Updates to only install security updates
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name 'BranchReadinessLevel' -Value 20 -PropertyType DWord -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name 'DeferFeatureUpdatesPeriodInDays' -Value 365 -PropertyType DWord -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name 'DeferQualityUpdatesPeriodInDays' -Value 5 -PropertyType DWord -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment