Reboot-TerminalServer.cmd
Batch file to reboot a terminal server
If there are sessions send a warning, wait an amount of seconds (search WARNING_DELAY_SECONDS within the script), and force logoff afterwards. Then reboot.
DISCLAIMER: This batch file is provided "as is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. Further, I shall not be liable for any damages you may sustain by using this module, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.