Valheim

Valheim

Not enough ratings
Valheim Dedicated Server on Windows with PowerShell
By Robomikel
Downloads SteamCMD, Creates Server Folder, Installs server, Manage Server including Starting, Stopping, Restart, Validate, Update, Check process, Backup, and monitoring with Discord Alerts.
   
Award
Favorite
Favorited
Unfavorite
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
2457 - query port
2458 - port
Download and Extract Steam-Server-Manager
Download and Extract
https://github.com/Robomikel/Steam-Server-Manager

OR

Install with PS:
open PowerShell and change the directory to where you want SSM to be installed.
Default Server files will be in the Steam-Server-Manager folder.

cd G:\Downloads\servers\

Command install instructions[github.com]


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.
SSM to Path[github.com] 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.
custom backup and server files directories[github.com]
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 server process

stop server -
./ssm stop valheimserver
- stop process for server

restart server -
./ssm restart valheimserver
- restarts process for server]

Daily Restart -
./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 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