The problem what I had with Landesk, when software is installed I want to inform the user to reboot. This is not configured in Landesk.

I made this script that use landesk client on the system to create a popup for a reboot.

@echo off
cls
echo --------------------------------------------------------
echo .
echo .
echo .                     Reboot
echo .         Window will close once installed

If "%PROCESSOR_ARCHITECTURE%" == "AMD64" GOTO X64
IF "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO x86

GOTO EXIT


:: Wait for 20 seconds
ping -n 20 127.0.0.1 > NUL

:x86


REM Run Reboot
"C:\Program Files\LANDesk\LDClient\ldReboot.exe"


GOTO EXIT



:X64

REM Run Reboot
"C:\Program Files (x86)\LANDesk\LDClient\ldReboot.exe"


GOTO EXIT

:EXIT
REM Return exit code to SCCM
exit /B %EXIT_CODE%

Add this script to landesk as a program and you can use it every time when you need to inform the user to reboot.

Leave a Reply

Your email address will not be published. Required fields are marked *