Scripting Question

Reboot Script - User option to cancel

09/18/2015 1611 views
Would anyone know if there is a way to send a reboot command through Kace and give the option to the end user to delay and cancel the reboot if needed. It needs to be user friendly, haven't been able to find anything like that
Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author

Google for 'shutdown hta'.

HTAs are easy to use as they're just HTML and VB Script/Javascript meaning that we can customise them to your heart's content.
Answered 09/21/2015 by: VBScab
Red Belt

  • thansk for the info !

All Answers

Create an online KScript and use the alert options like this:
Alert user before run - checked
Options: OK/Snooze/Cancel
Fill in the other fields as desired

Add a new task
Verify: Launch and application. 
Directory: c:\windows\system32
File: cmd.exe
Parameters: /C shutdown -r -c "System Restart" -t 5 -d U:00:00

Answered 09/21/2015 by: chucksteel
Red Belt

  • Thanks ! this works perfectly
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ