Valheim – Dedicated Server on Windows with PowerShell

Valheim – Dedicated Server on Windows with PowerShell 1 - steamlists.com
Valheim – Dedicated Server on Windows with PowerShell 1 - steamlists.com
Downloads SteamCMD, Creates Server Folder, Installs server, Manage Server including Starting, Stopping, Restart, Validate, Update, Check process, Backup, and monitoring with Discord Alerts.

 
 

Prerequisites

 

create a windows user: non-admin to install, run steam-server-manager, and game server.

 
 

Open and forward ports for game server. Port 2456 and the 2 following ports (optional)

2456 – server port 
245. – query port 
245. – port 
 
 
 

Download and Extract Steam-Server-Manager

Download and Extract 
github.com – https://github.com/Robomikel/Steam-Server-Manager 
 
Run SSM to create config-local\local_settings.ps1 
./ssm you should see the help menu appear 
 

Optional:

SSM to Path 
You can add SSM to PowerShell Path. meaning you can run SSM commands from any directory. 
github.com – https://github.com/Robomikel/Steam-Server-Manager/wiki/Installing-SSM-to-PATH You also will not need dot forward slash ( ./ssm). ssm  
 
Custom Backup and ServerFiles Directories 
 
you can specify server files location and separate backup locations, like separate drives. 
github.com – https://github.com/Robomikel/Steam-Server-Manager/wiki/Custom-Backup-and-ServerFiles-Directories 
 
 
 

Install Valheim Server

Open a PowerShell terminal NOT as admin. 
 
cd Path\To\Steam-Server-Manager  
From Path\To\Steam-Server-Manager 
 
./ssm install valheimserver  
 
It will ask if using Anonymous login for steamCMD. 
Use Anonymous Login? Press Enter for Anonymous 
 
 
 

Steam-Server-Manager Commands

ssm Menu ./ssm menu – Use interactive Menu instead of commands 
 
start server ./ssm start valheimserver – Starts sandstorm server process 
 
stop server ./ssm stop valheimserver – stop process for sandstorm server 
 
restart server ./ssm restart valheimserver – restarts process for sandstorm server] 
 
AutoRestart server ./ssm install-restart valheimserver – Creates a Task to Restart/Update server once a day 
 
validate server ./ssm validate valheimserver – Validate App ID files 
 
monitor server
./ssm monitor valheimserver – checks process for sandstorm server, starts if porocess not running. =used by install-monitor 
 
install monitor ./ssm install-monitor valheimserver – Creates Scheduled Task to check if server is running every 15 minutes 
 
update server ./ssm update valheimserver – updates server files 
 
backup server – > ./ssm backup valheimserver – Creates zip folder of server files in backups folder 
 
restore server – > ./ssm restore valheimserver – Creates zip folder of server files in backups folder 
 
details server ./ssm details valheimserver Get details on server and host 
 
query server ./ssm query valheimserver Get gamedig details on server 
 
Update ssm – ./ssm ssm update – Downloads and overwrites ssm github files 
 
 
 

Locations of folder and config files

Server Files  
Path\To\Steam-Server-Manager\valheimserver\* 
 
Launch Param Vars  
changing ports and server after install 
Change hostname here 
Path\To\Steam-Server-Manager\\valheimserver\Variables-valheimserver.ps1 – Launch param and editable vars unique to instance 
 
ssm settings  
Change default ssm settings in 
Path\To\Steam-Server-Manager\config-local\local_settings.ps1 
Add Discord Webhook 
Change Custom backup and server files directories 
 
 
 

More info

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

Video

 
 

Written by Robomikel

This is all about Valheim – Dedicated Server on Windows with PowerShell; I hope you enjoy reading the Guide! If you feel like we should add more information or we forget/mistake, please let us know via commenting below, and thanks! See you soon!
 
 
 
 


Be the first to comment

Leave a Reply

Your email address will not be published.


*