Friday, November 4, 2022

Auto Login Steam Account based on computer name

Create batch file and paste the following script :
@echo off
if %computername% equ PC01 Start "" "D:\Steam\steam.exe" -silent -noverifyfiles -cafeapplaunch -noreactlogin -login username1 password1 steam://rungameid/1677740

if %computername% equ PC02 Start "" "D:\Steam\steam.exe" -silent -noverifyfiles -cafeapplaunch -noreactlogin -login username2 password2 steam://rungameid/1677740

exit

Note :
- Change PC01 to your computer's name
- Change D:\Steam\steam.exe to your steam directory
- Change username1 and password1 to your steam account username and password
- Change 1677740 to id of the steam game

For new Steam launcher, remove -noverifyfiles.  Because it can cause data sync problem with diskless client

No comments:

Post a Comment