Jump to content
Sign in to follow this  
Viceman

Script Noob

Recommended Posts

Hello,

 

I'm very new to Labtech scripting and scripting in general. I'm trying to create a script to prompt the user to reboot, option 1 being 'Reboot now', option 2 being 'Reboot in 2 hours' but I haven't had much success. I've attached an image of my current testing script but I cannot get a prompt with two different answers for the life of me. I can get Console Window to ask an "Ok" prompt but everything else fails. Also, how do I have the script end if it goes to reboot? Right now, it doesn't prompt at all (since I removed Console Window) but even with prompting it will run one reboot command then another. Thank you for any assistance you can lend.

Thanks,

 

labtech.JPG

Share this post


Link to post
Share on other sites

Thank you so much I will try this! How did you add step 7? I don't seem to see the function for Exit Script. I do have a "Script Exit with Error" option.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...