I'm a C# programmer and haven't done vbscript for years hence needing help here. I have a script that reboots the pc . It pops up a dialog that has a Yes and a No buttons that does the following.
1. I have a error in the syntax which I uploaded the error screen. I can't see what the error is so appreciate help with this. I'm using NotePad++ to edit this file.
2. Would the code in Sub RebootPC work? I got this code after googling online.
3. This program will be run on Windows 7 PCs
If they click Yes then restart, if they click No, delay for 10 minutes, then prompt again.
If they hit No a second time, delay 10 minutes, and then prompt again.
If they hit No a third time, delay 10 minutes and then prompt again.
On the 4th time, give them with a message that the computer will restart in 5 minutes with a count down, and then restart the box.