
The user has the option to proceed with the reboot or he can choose to click the "No" button and abort the reboot. Clicking "Yes" will invoke the ShutMeDown procedure which uses the .Reboot method to reboot the computer. Clicking "No" will display the following pop-up:

Not clicking on either the "Yes" or "No" after 60 seconds will abort the script from continuing.
For what possible situations can this script be used? Follow the discussing from the following thread in The Official Scripting Guys Forum on Technet:
http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/65e8699f-fca4-4e08-a181-8b621acbf963
2 comments:
Where is that OK button? ;)
Hehe, sharp eyes! Let it be, those who would find a use for this script should debug it themselves. =)
Post a Comment