Skip to main content

Feature Update Install with Tracking (Reset Custom Fields)

Summary

The script clears the related custom fields on machines where the Feature Update is successfully installed, thereby excluding those machines from automation and monitoring.

Sample Run

Sample Run 1
Sample Run 2

Dependencies

Create Script

Create a new Script Editor style script in the system to implement this task.

Create Script
Create Script 2

Name: Feature Update Install with Tracking (Reset Custom Fields)
Description: Reset the values of the Feature Update Install Failure, Feature Update Reboot Pending, and WinFeatUpgradeAttempts Custom Fields for Windows 10 and Windows 11 computers that are already on the latest build version.
Category: Patching

Create Script 3

Script

Start by adding a row. You can do this by clicking the Add Row button at the bottom of the script page.

Add Row

Row 1 Function: Set Custom Field

Row 1
Search and select the Set Custom Field function in the new row.
Set Custom Field 1
Set Custom Field 2

Search and select the WinFeatUpgradeAttempts Custom Field.
WinFeatUpgradeAttempts
Type (there is a single space) in the Value box and click the Save button.
Value Field
Save Button

Row 2 Function: Set Custom Field

Insert a new row by clicking the Add Row button.
Row 2
Row 2 2

Search and select the Set Custom Field function in the new row.
Set Custom Field 3
Set Custom Field 4

Search and select the Feature Update Reboot Pending Custom Field.
Feature Update Reboot Pending
Type False in the Value box and click the Save button.
Save Button 2

Row 3 Function: Set Custom Field

Insert a new row by clicking the Add Row button.
Row 3
Row 3 2

Search and select the Set Custom Field function in the new row.
Set Custom Field 5
Set Custom Field 6

Search and select the Feature Update Install Failure Custom Field.
Feature Update Install Failure
Type (there is a single space) in the Value box and click the Save button.
Value Field 2

Click the Save button to save the task.
Save Task

Completed Script

Completed Script

Deployment

  1. Go to Automation > Tasks.
  2. Search for Feature Update Install With Tracking (Reset Custom Fields) task.
  3. Select the concerned task.
  4. Click on the Schedule button to schedule the task/script.
    Schedule Task
  5. This screen will appear.
    Schedule Screen
  6. Click the Does not repeat button.
    Does Not Repeat
  7. This pop-up box will appear.
    Pop-up Box
  8. Click the OK button to run the task once per day.
    OK Button
  9. Select the relevant time to execute the script. It is suggested to run this task during working hours when most of the workstations are online.
    Execution Time
  10. Search and select the Feature Pack Update - Updated Computers group in the Resources.
    Resources
  11. Clicking the Run button will initiate the schedule.
    Run Button
  12. The task will start appearing in the Scheduled Tasks.
    Scheduled Tasks
    Scheduled Tasks 2
  13. The Suspend option can be used to suspend/stop the schedule.
    Suspend Option
    Suspend Option 2

Output

  • Custom Field