7 Days to Die

7 Days to Die

Not enough ratings
Manage 7 days to Die Dedicated Server on Windows with Powershell
By Robomikel
Downloads SteamCMD, Creates Server Folder, Installs server, Edits serverconfig.xml . Manage Server including Install, Check process, Backup, monitoring with Discord Alerts, Starting, Stopping, Restart, Validate, Update, Pull Gamedig details. All Done from a PS terminal. >_
   
Award
Favorite
Favorited
Unfavorite
Prerequisites
Create a windows user: non-admin to install, run steamer, and game server.

Open and forward ports for game server. Rcon (optional)

Firewall Ports
TCP - 26900
UDP - 26900-26902

Webmin and Rcon
TCP - 8080-8081 Only open these if you plan to connect to Webmin and Telnet from outside your Network. I recommend to keep them close and perform admin task locally.



Steam-Server-Manager files from github
https://github.com/Robomikel/Steam-Server-Manager

open PowerShell and change directory to where you want the SSM and the server to be installed.
Server files will be in the Steam-Server-Manager folder.
cd G:\Downloads\servers\
before first Run
Edit any default vars in Steam-Server-Manager\config-default\7days2die_defaut.ps1. They can be changed after install as well. If using a server password. add before the first run
################## Change Default Variables ################# # Server Port $global:PORT = "26900" # Server Name $global:HOSTNAME = "$env:USERNAME" ###########################/\#################################
first run
Open a PowerShell terminal NOT as admin.

./ssm install 7d2dserver


It will ask if using Anonymous login for steamCMD.
Use Anonymous Login?
Press Enter for Anonymous
Steam-server-Manager Commands
./ssm start 7d2dserver
- Starts 7d2d server process
./ssm stop 7d2dserver
- stop process for 7d2d server
./ssm restart 7d2dserver
- stops and starts process for 7d2d server]
./ssm validate 7d2dserver
- Validate App ID files
./ssm check 7d2dserver
- checks process for 7d2d server
./ssm update 7d2dserver
- updates server files
./ssm backup 7d2dserver
- Creates zip folder of server files in backups
folder (Downloads portable 7Zip)
./ssm monitor 7d2dserver
- Creates Scheduled Task with monitor and send Discord alert if off
./ssm discord 7d2dserver
- Send Test Discord Alert
./ssm details 7d2dserver
- get details on server and host
./ssm ssm update
- Downloads and overwrites ssm github files
Locations of folders and config files
Default Vars before first run
Path\To\Steam-Server-Manager\config-default\7days2die_default.ps1


Server FIles
Path\To\Steam-Server-Manager\7d2dserver\*

Server config
Path\To\Steam-Server-Manager\7d2dserver\serverconfig.xml

Launch Param Vars and webhook
Path\To\Steam-Server-Manager\7d2dserver\Variables-7d2dserver.ps1 - Launch param and editable Vars unique to instance. Webhook goes here
More Info
After installing, fell free to configure serverconfig.xml to your liking.
https://developer.valvesoftware.com/wiki/7_Days_to_Die_Dedicated_Server
6 Comments
Robomikel  [author] 14 Mar, 2021 @ 9:12pm 
added undead legacy install to project
Robomikel  [author] 25 Feb, 2021 @ 10:42pm 
I added a better stop function. properly closes window for smoother stopping.
Robomikel  [author] 26 Sep, 2020 @ 12:37pm 
I added a "Restore Command". you can now list the backups and restore from backup in PS console.
Robomikel  [author] 31 Aug, 2020 @ 8:52pm 
You may want to make a backup before you start. We are going to overwrite or replace the current files. You should have a AppDataBackup_7d2dserver*.zip and a Backup_7d2dserver*.zip in the backup folder in Steam-Server-Manager folder. find the date to you want from each.
AppDataBackup is for the players/profiles save.
1. Unzip AppDataBackup and place contents in C:\Users\<user>\AppData\Roaming\7DaysToDie\ they both should contain a folder called "Saves".Overwrite. You can also rename the folder or just move it somewhere like the Desktop if you didn't make a backup.

2. Unzip Backup_7d2dserver.zip all the contents goes inside the Path/to/Steam-Server-Manager/7d2dserver/ folder. once again you can move all the contents to another folder as a backup if you would like.


Then you should be able to start the server. If you are trying to get around an update or something. You may want to disable autoupdate in the Steam-Server-Manager/functions/core_settings.ps1 first before starting.
Forever Dark 31 Aug, 2020 @ 3:02pm 
How do i load a backup on a dedicated server?
Robomikel  [author] 19 Jan, 2020 @ 7:07pm 
Final Version updated and tested.