A reboot task exists in LANDESK, but it is not suitable for performing a final deployment reboot because the provisioning task will only complete when a session is reopened on the machine.

Workaround:

To bypass the issue, I run shutdown.exe with a timeout greater than 30 seconds.

  • Create a batch file (e.g., restart.cmd) to run the shutdown command and copy it to the repository.
start c:\windows\system32\shutdown.exe /r /t 60 /c "Final restart"
  • In the provisioning task, download the batch file.
Downloading the batch file in provisioning task
  • Then execute it.
Executing the batch file in provisioning task
  • The restart will be initiated at the end of the deployment after the provisioning task has completed properly.