How to use Poweroff.exe in a script to reboot machines

Version 3




    Creating a script to reboot machines with POWEROFF.EXE in:


    C:\Program Files\LANDesk\ManagementSuite\ldlogon



    How to use



    Create a script with the following REMEXEC command:


    REMEXEC0=C:\Windows\System32\Poweroff.exe 600 /REBOOT /nocancel



    • 600 is the number of seconds before the machine will reboot and can be adjusted as desired
    • /REBOOT must be capitalized
    • /nocancel option will take away the cancel button in the UI. This is not case sensitive.