Windows Update

Contents

Windows Update

Description

Ensure that all devices have installed the latest security updates by triggering Windows update to scan for updates, and detect if a device is reboot-pending.

Platforms

  • Windows 7
  • Windows 10

License modules

  • Nexthink Act.

Compatibility

  • Nexthink V6.14 and later.

Script Invoke Windows Update

  • Version 1.0.0.0 - Initial release

Script Description

ADVANCED SCRIPT Restarts Windows Update service and starts BITS service (if needed). It forces the device to scan for system updates. The script is designed for Windows 10 and 7.

Execution context and suggested scheduling

Run the script manually as local system.

Parameters

ID Label Description
1 MaximumDelayInSeconds Maximum random delay set to avoid virtual environment and network overload. Provide number of seconds less than 600

Outputs

None.

Further Information

Parameter 'MaximumDelayInSeconds' can be used to add random script execution delay. It should be used to spread over time number of I/O requests on server hosting virtual machines and reduce network workload.

Restrictions

  • The script should not be concurrently executed on many devices which are connected to the same network.
  • Windows Update execution may not be executed if user has it disabled due to Group Policy configuration.

Script Test Pending Reboot

  • Version 1.0.0.0 - Initial release

Script Description

Script retrieves information if device is pending reboot and the reason. Possible causes covered are as follow:

  • Computer renaming.
  • Domain join.
  • File rename operations.
  • SCCM Agent.
  • Software installation.
  • Windows update.

Execution context and suggested scheduling

Run the script manually as local system.

Parameters

None.

Outputs

ID Label Type Description
1 PendingReboot Bool Device is reboot-pending (Yes/No)
2 PendingRebootReason String All detected reasons for reboot-pending