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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×