Make from a Powershell script an Exe file

I use this program to make scripts and easy added to Landesk. And it works for Windows 10.

Start iexpress

Click on Next

Click on Next

Enter a Title of the package and click on Next

Click on Next

Click on Next

Add the powershell script (*.ps1) and click on Next

Fill in at Install Program: powershell.exe -noprofile -Sta -executionpolicy bypass -File <Powershell scriptname.ps1>
And click on Next

Click on Next

Click on Next

Where to save the exe file. Click on browse. Select the options what you want and click on Next

When the install is done, do you want to reboot?
I always use No restart. Click on Next

Choose if you want to save the SED file and Click on Next.

Click on Next to create Package

The package is created. Click on Finish and test the application.

Create a reboot popup with Landesk

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.