How are you rebooting?
Are you running this command to reboot at the end of the batch file?
I am running one batch file. The last task is running MSIEXEC with a "/forcereboot". Is there a "smarter" way to do this so LANDesk knows the distribution package was successful and the system was rebooted.
So tell the MSI to NOT reboot.
If a reboot is required, an MSI usually returns 3010, meaning Error_Success_reboot_required.
So we check if the reboot is needed or not.
REM My Batch file to install an MSI :installer someinstaller.msi /q /noreboot REBOOT=REALLYSUPPRESS REM Check if it works REM Usually it returns 0 if it works and does NOT need a reboot IF "%ERRORLEVEL%"=="0" GOTO end REM Usually it returns 3010 if it works and DOES need a reboot IF "%ERRORLEVEL%"=="3010" GOTO reboot :reboot sdclient.exe /reboot :end
So now the reboot is handled by LANDesk instead of the MSI and everything should work as desired.
1 of 1 people found this helpful
By the way, your delivery method has to have the reboot option set to Reboot if needed.
Great. Thanks for the info.