- Joined
- Apr 5, 2017
- Messages
- 11
- Reaction score
- 1
as the name suggests i am trying to figure out how to safely shut down a dedicated server via windows cmd or powershell.
the reason:
i am currently running a dedicated server on my server at home. and i am writing a powershell script to backup the server (server database, custom block behavior file, whitelist file, server.cfg file) to a folder named the current date, however now that i am finished i want to set it up as a scheduled task, and in order to backup the server files the server has to be shutdown.
i run the server via StarMade-dedicated-server-windows.bat so it runs in a cmd window. is there a way the shut down the server through cmd or powershell commands so i can create a script to shut down the server and run it on schedule with the backup script and server script. any ideas?
the reason:
i am currently running a dedicated server on my server at home. and i am writing a powershell script to backup the server (server database, custom block behavior file, whitelist file, server.cfg file) to a folder named the current date, however now that i am finished i want to set it up as a scheduled task, and in order to backup the server files the server has to be shutdown.
i run the server via StarMade-dedicated-server-windows.bat so it runs in a cmd window. is there a way the shut down the server through cmd or powershell commands so i can create a script to shut down the server and run it on schedule with the backup script and server script. any ideas?