i need shutdown vbscript with msgbox " your computer will shutdown in x min Press Cancel to abort "
if no one press cancel the shutdown command is going to continue. i have tried to write a script i need your help !!
TimeOut = 1 '(in minutes) how to use ?
or is there another way ??
Set WshShell = CreateObject("WScript.Shell")
userschoice = Msgbox("The Computer is shuting down now", VBOKCancel + vbExclamation,"Caution")
If vbOK Then
objShell.Run "shutdown.exe -s -t 30"
Msgbox "Shutdown abortet"