vbscript that can tell if the user asked for a shutdown or restart
Posted on 2008-10-09
Sorry I am really new to this. im trying to write a logoff vbscript that can tell if my users requested to shutdown the computer or reboot it.
sort of like:
if reboot then X
if shutdown then Y
can someone provide me with some sample code that would accomplish this seemlessly without them needing to do any extra steps.
the purpose for this is to create a way for my users to quickly reboot their machines during work hours by bypassing large portions of the logoff script that typically take a lot of time. Since my users dont work regular hours, i cant simply create a between the hours of arguement.
thank you for your reply