Skip to main content

Set Feature Update Deferral Days

Summary

Enforces the Windows feature update delay based on the mandatory company-level custom field Days to Defer Feature Updates. Setting that field to 0 turns off the deferral policy entirely. Once the registry changes are applied, the script automatically writes the new value back to the device-level custom field Feature Update Deferral Days for accurate reporting.

Sample Run

Image1

Dependencies

Custom Fields

NameExampleLevelTypeRequiredDescription
Days to Defer Feature Updates100CompanyTextYesThe desired number of days (0-365) to postpone Windows feature updates for all Windows 10 and 11 endpoints under this client.
Feature Update Deferral Days100EndpointTextYesStores the current feature update deferral setting fetched by the script.

Task Setup Path

  • Tasks Path: AUTOMATIONTasks
  • Task Type: Script Editor

Task Creation

Description

  • Name: Set Feature Update Deferral Days
  • Description: Enforces the Windows feature update delay based on the mandatory company-level custom field "Days to Defer Feature Updates". Setting that field to 0 turns off the deferral policy entirely. Once the registry changes are applied, the script automatically writes the new value back to the device-level custom field "Feature Update Deferral Days" for accurate reporting.
  • Category: Patching

Image2

Script Editor

Row 1: Set Pre-defined Variable

  • Variable Name: deferralDays
  • Type: Custom Field
  • Custom Field: Days to Defer Feature Updates
  • Continue on Failure: False
  • Operating System: Windows

Image3

Row 2: PowerShell script

  • Use Generative AI Assist for script creation: False
  • Expected time of script execution in seconds: 300
  • Continue on Failure: False
  • Run as: System
  • Operating System: Windows
  • PowerShell Script Editor:

PowerShell Script

Image4

Row 2: Script Log

  • Script Log Message: %Output%
  • Continue on Failure: False
  • Operating System: Windows

Image5

Row 3: Set Custom Field

  • Custom Field: Feature Update Deferral Days
  • Value: %Output%
  • Continue on Failure: False
  • Operating System: Windows

Image6

Completed Script

Image7

Output

  • Script Log
  • Custom Field

Scheduled Task

Task Details

  • Name: Set Feature Update Deferral Days
  • Description: Enforces the Windows feature update delay based on the mandatory company-level custom field "Days to Defer Feature Updates". Setting that field to 0 turns off the deferral policy entirely. Once the registry changes are applied, the script automatically writes the new value back to the device-level custom field "Feature Update Deferral Days" for accurate reporting.
  • Category: Patching

Image8

Schedule

  • Schedule Type: Schedule
  • Timezone: Local Machine Time
  • Start: <Current Date>
  • Trigger: Time At <Current Time>
  • Recurrence: Every day

Image9

Targeted Resource

Device Group: Manage Feature Update Deferral Days

Image10

Completed Scheduled Task

Image11

Changelog

2026-03-11

  • Initial version of the document