You'll have to bear with me, as my knowledge of VBScript is about as extensive as a morning of looking at a script could be. Thankfully I've worked with other programming languages before, so there is a lot that was understandable.
We have a .vbs file that runs every day at around 19:00 from the server. The basic idea is that it tells each computer in the area to display a message that says, "you have 5 minutes before this computer shuts down," and then it runs the shutdown command in cmd (with the timer set to 5 minutes).
What we would like to do is have the popup message provide an option to stop the shutdown process if the user would prefer to continue working. However, from my research on Google the only way of doing this appears to be by having a second .vbs script on the local machine that will present a separate popup box.
Is there a way of doing this without having a .vbs script on each machine? If it is possible and someone has a link to the relevant information then that would be greatly appreciated.
EDIT: Continuing my research, it appears that you need to have admin privileges to run the .vbs script on the local machine. This is going to be a problem, as not everyone is an admin (for obvious reasons :laugh:).
Question
Nick H. Supervisor
Hi guys,
You'll have to bear with me, as my knowledge of VBScript is about as extensive as a morning of looking at a script could be. Thankfully I've worked with other programming languages before, so there is a lot that was understandable.
We have a .vbs file that runs every day at around 19:00 from the server. The basic idea is that it tells each computer in the area to display a message that says, "you have 5 minutes before this computer shuts down," and then it runs the shutdown command in cmd (with the timer set to 5 minutes).
What we would like to do is have the popup message provide an option to stop the shutdown process if the user would prefer to continue working. However, from my research on Google the only way of doing this appears to be by having a second .vbs script on the local machine that will present a separate popup box.
Is there a way of doing this without having a .vbs script on each machine? If it is possible and someone has a link to the relevant information then that would be greatly appreciated.
EDIT: Continuing my research, it appears that you need to have admin privileges to run the .vbs script on the local machine. This is going to be a problem, as not everyone is an admin (for obvious reasons :laugh:).
Link to comment
Share on other sites
19 answers to this question
Recommended Posts