Skip to main content

Get Feature Update Deferral Days

Summary​

Fetches the current feature update deferral setting from the local machine. The output is automatically mapped to the Feature Update Deferral Days custom field, with a value of 0 indicating the policy is inactive.

Sample Run​

Image1

Dependencies​

Custom Fields​

NameExampleLevelTypeRequiredDescription
Feature Update Deferral Days100EndpointTextYesStores the current feature update deferral setting fetched by the script.

Task Setup Path​

  • Tasks Path: AUTOMATION ➞ Tasks
  • Task Type: Script Editor

Task Creation​

Description​

  • Name: Get Feature Update Deferral Days
  • Description: Fetches the current feature update deferral setting from the local machine. The output is automatically mapped to the "Feature Update Deferral Days" custom field, with a value of 0 indicating the policy is inactive.
  • Category: Data Collection

Image2

Script Editor​

Row 1: 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

Image3

Row 2: Script Log​

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

Image4

Row 3: Set Custom Field​

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

Image5

Completed Script​

Image6

Output​

  • Script Log
  • Custom Field

Scheduled Task​

Task Details​

  • Name: Get Feature Update Deferral Days
  • Description: Fetches the current feature update deferral setting from the local machine. The output is automatically mapped to the "Feature Update Deferral Days" custom field, with a value of 0 indicating the policy is inactive.
  • Category: Data Collection

Image7

Schedule​

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

Image8

Targeted Resource​

Device Group: Windows 11 Machines

Image9

Completed Scheduled Task​

Image10

Changelog​

2026-03-11​

  • Initial version of the document