geep 0 Posted July 8, 2019 Hi, I'm having some difficulty with server updates, I have a script to auto update on restarts but I don't want to leave login details in the BE startup bat. Is there a way to add a steam game token which we are able to create in our steam accounts instead so that steam login details don't have to be used for updating the server via steam cmd? The server is running on a dedicated machine without steam installed, I guess the updater wants login details to confirm ownership of the game but this can also be done through the game token, just not sure how to make it work. This is what I'm using. @echo off SETLOCAL ENABLEDELAYEDEXPANSION SET STEAMlogin="user" "PW" (server updates when I use user/pw but would rather not have that info saved in the bat file) (is it possible to use a game token here instead?) SET INSBRANCH=223350 SET InsPath=path of server installation SET STEAMPATH=path of steam cmd installation :: _________________________________________________________ echo. echo Dir: %InsPath% echo Branch: %INSBRANCH% echo. %STEAMPATH%\steamcmd.exe +login %STEAMLOGIN% +force_install_dir %InsPath% +"app_update %INSBRANCH%" validate +quit echo . Any advice would be appreciated. Thanks. Share this post Link to post Share on other sites
fake 3 Posted July 10, 2019 (edited) SteamCMD doesn't support the game login tokens as far as I know. To hide your password you may wanna use third party tools. https://developer.valvesoftware.com/wiki/SteamCMD#Windows_Software.2FScripts An easy way to hide the password itself in the command line window is to call a login separate BATCH which contains your login data. steam_login.bat @echo off set STEAM_DIR=C:\PathToSteamCMD set USER=username set PASS=password cd %STEAM_DIR% steamcmd.exe +login %USER% %PASS% %* steam_login_anonym.bat @echo off set STEAM_DIR=C:\PathToSteamCMD set USER=anonymous cd %STEAM_DIR% steamcmd.exe +login %USER% %* Inside your game folder you call the steam_login(_anonym).bat to update your server. The command line will not show your password in plain text. This doesn't solve your problem but the password isn't visible in the command line anymore! That's all. update_server.bat @echo off set STEAM_DIR=C:\PathToSteamLoginBAT set APP_ID=223350 cd %STEAM_DIR% steam_login.bat +force_install_dir %~dp0 +app_update %APP_ID% validate +quit Place the update_server.bat inside your servers root directory. %~dp0 - is the current working path Edited July 10, 2019 by fake Share this post Link to post Share on other sites