You are using an ad blocker that is interfering with our web typography and internal javascript. Please whitelist our domain to live in a more beautiful world. No ads here, just really great software!

Windows Update

Ensure that all devices have installed the latest security updates by triggering Windows Update to scan for updates, detect if a device is reboot-pending, check execution status of latest Windows Feature Update and investigate its potential failure reason.

Script Get Last Feature Update Status

  • Version 1.0.0.0 – Initial release

Script Description

Retrieves the local date, the installation status and the name of the Windows Feature Update that was most recently processed on the device.

Execution context and suggested scheduling

Run the script as local system. The script should be executed manually.

A timeout of 120 seconds is recommended.

Parameters

None.

Outputs

ID Label Type Description
1 Installation Date DateTime Local device time of the last Windows Feature Update installation attempt
2 Installation Status String Result status of the last Windows Feature Update installation attempt. Possible values are: ‘Unknown’, ‘InProgress’, ‘Succeeded’, ‘SucceededWithErrors’, ‘Failed’, ‘Aborted’
3 Feature Name String Full name of the last Windows Feature Update processed on the device

Restrictions

  • Script is working with Windows 10 only.

Script Get Windows Feature Update Diagnosis

  • Version 1.0.0.0 – Initial release

Script Description

Executes Microsoft tool SetupDiag.exe, that process Windows Feature update log files and returns a list of possible failure reasons or upgrade confirmation.

Execution context and suggested scheduling

Run the script as local system. The script should be executed manually.

A timeout of 1020 seconds is recommended.

Parameters

ID Label Description
1 Maximum Delay In Seconds Maximum random delay set to avoid overloading server hosting virtual machines. Provide number of seconds less than 600
2 Setup Diag Path Absolute path to the location of SetupDiag.exe tool on target device. For example “C:\temp\SetupDiag.exe”

Outputs

ID Label Type Description
1 Total Matching Reasons Count Int Total count of matching rules detected by SetupDiag.exe tool
2 Matching Reason List StringList A list of matching rules with detailed description that may assist with further investigation

Further Information

Depending on the size of the Windows Update log file, investigation time may vary. With a log file of a total size of 160MB, processing lasts around 5 minutes.

Restrictions

  • This Remote Action is compatible with Windows 10 only.
  • SetupDiag tool must be deployed to target device before executing this Remote Action.

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 as local system. The script should be executed manually.

A timeout of 720 seconds is recommended.

Parameters

ID Label Description
1 Maximum Delay In Seconds 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 as local system. The script should be executed manually.

A timeout of 120 seconds is recommended.

Parameters

None.

Outputs

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

Content

Remote Actions

Required Modules

Nexthink Act

Platforms

Windows

Compatibility

V6.14 and later
Thank you!