Rust
Not enough ratings
Manage Rust Dedicated Server on Windows with Powershell
By Robomikel
Downloads SteamCMD, Creates Server Folder, Installs server, Creates Launch params. Manage Server including Install, Check process, Backup, monitoring with Discord Alerts, Starting, Stopping, Restart, Validate, Update, Pull Gamedig details. Downloads Oxide and Installs 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. Server port, Query Port and Rcon (optional)
TCP/UDP - 28015 ~ 28016
Download SSM files from github
before first Run
Edit any default vars in Steam-Server-Manager\config-default\Rust_default_defaut.ps1. They can be changed after install as well. If using a server password. add before the first run
################## Change Default Variables ################# # Server IP ${global:IP} = "${ip}" # Server Port $global:port = "28015" # Rcon Port $global:rconport = "28016" # Rcon Password $global:rconpassword = "$RANDOMPASSWORD" # Rcon Web $global:rconweb = "1" # Server Name $global:hostname = "SERVERNAME" # Maxplayers $global:maxplayers = "32" # World Seed $global:seed = "$RANDOMSEED" # World Size $global:worldsize = "3000" # Save Interval $global:saveinterval = "300" # Tickrate $global:tickrate = "30" ##############################/\##############################
First Run
Open a PowerShell terminal NOT as admin.

./ssm install rustserver


It will ask if using Anonymous login for steamCMD.
Use Anonymous Login?
Press Enter for Anonymous
SSM Commands
Start -
./ssm start rustserver
- Starts rustserver server process

Stop -
./ssm stop rustserver
- stop process for rustserver server

restart -
./ssm restart rustserver
- stops and starts process for rustserver server

validate -
./ssm validate rustserver
- Validate App ID files

check
-
./ssm check rustserver
- checks process for rustserver server

update -
./ssm update rustserver
- updates server files

backup - >
./ssm install-backup rustserver
- Creates zip folder of server files in backups

folder (Downloads portable 7Zip)

monitor -
./ssm install-monitor rustserver
- Creates Scheduled Task with monitor and Discord alert

details -
./ssm details rustserver
gets details on host and server

ssm update -
./ssm ssm update
- Downloads and overwrites ssm github files
Locations of folder and config files
Locations of folders and config files
Default Vars before first run
Path\To\Steam-Server-Manager\config-default\Rust_default.ps1


Server FIles
Path\To\Steam-Server-Manager\rustserver\*


Launch Param Vars and Discord webhook
Path\To\Steam-Server-Manager\rustserver\Variables-rustserver.ps1 - Launch param and editable Vars unique to instance. Webhook goes here
Oxide Install and Plugin updater
Oxide install
./ssm mod-install rustserver

Plugin updater
./ssm update-mods rustserver
6 Comments
Robomikel  [author] 1 Oct, 2024 @ 1:38am 
@Ded Maks - I added some catch logging for the config default web request.
Robomikel  [author] 22 Sep, 2024 @ 5:04pm 
@Ded Maks - You can copy/download the rust_default.ps1 from my config-default github repo and place it in config-default and may need to place it in config-local. The download may be getting blocked or failing for some reason. You can enable debug and run it again check the log.
n1clutch 16 Sep, 2024 @ 2:45pm 
@Robomikel
Can you help me -> Steam-Server-Manager\config-default folder are empty even after I install RustServer. When I try to start server it give me error: Warning: Missing Variables.

But I can start server by RustDedicated.exe (start.bat)

@echo off
chcp 65001
cls
echo Starting Server...
RustDedicated.exe -batchmode -nographics -silent-crashes ^
+server.ip 0.0.0.0 ^
+server.port 28015 ^
+server.queryport 28017 ^
+rcon.ip 0.0.0.0 ^
+rcon.port 28016 ^
+rcon.password "950720" ^
+app.port 28082 ^
+server.identity "rst" ^
+server.gamemode Vanilla ^
+server.level "Procedural Map" ^
+server.seed 933441067 ^
+server.worldsize 2000 ^
-LogFile "server\rst\server.log"
Robomikel  [author] 19 May, 2023 @ 10:12pm 
@Logor - sorry for the late response. I wasn't subscribed to this tread for some reason. I did a bunch of updates recently. Is it still happening? also, did you check the log? There should be a catch for any web-request error.
Logor 3 Apr, 2023 @ 10:07pm 
I'm getting WARNING: Downloading Oxide Failed
when I try to install oxide.
Robomikel  [author] 25 Feb, 2021 @ 10:43pm 
Did some major updates to project. oxide install and plugin updater. I got tired of always having to re-install oxide with rust updates and have to check for updates on each plugin :)