Restart Computers and Send a Log
Posted: 27 Apr 2020 15:16
Hello,
I am in need of assistance. I'm trying to make a batch file to restart computers on my network and send a log of what computers successfully restarted and what computers were not. I know to restart the command is shutdown -r but I'm not sure how to get it to send a log file. A quick rundown I am trying to do is:
At (Time) warn user logged in that computer will restart in 30 minutes and to save their work before the restart.
At (Time) warn the user that the computer will restart in 5 minutes and to save their work before the restart.
At (Time) shutdown -r
Upon successful/unsuccessful restart send a log to (Server/Folder)
If you need more information please let me know.
I am in need of assistance. I'm trying to make a batch file to restart computers on my network and send a log of what computers successfully restarted and what computers were not. I know to restart the command is shutdown -r but I'm not sure how to get it to send a log file. A quick rundown I am trying to do is:
At (Time) warn user logged in that computer will restart in 30 minutes and to save their work before the restart.
At (Time) warn the user that the computer will restart in 5 minutes and to save their work before the restart.
At (Time) shutdown -r
Upon successful/unsuccessful restart send a log to (Server/Folder)
If you need more information please let me know.