install.bat: join Tesla workgroup + enable SMB1 client and server
- Join a site-wide workgroup (WORKGROUP=Tesla) at install time so every pod shares one browse list for the mw4files / c shares. - Enable SMB1 server as well as client: the pod hosts those shares and Win10/11 ship the SMB1-Server sub-feature off by default, so old SMB1 clients couldn't reach them. Now enables SMB1Protocol + -Client + -Server. - Refresh the stale asset-layout comment in the header. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+25
-10
@@ -7,13 +7,11 @@
|
||||
::
|
||||
:: TeslaLauncher\
|
||||
:: install.bat <- this file
|
||||
:: Service\
|
||||
:: TeslaLauncherService.exe
|
||||
:: Agent\
|
||||
:: TeslaLauncherAgent.exe
|
||||
:: oalinst.exe
|
||||
:: dx9201006\
|
||||
:: DXSETUP.exe
|
||||
:: Service\TeslaLauncherService.exe
|
||||
:: Agent\TeslaLauncherAgent.exe
|
||||
:: dx9201006\DXSETUP.exe (DirectX June 2010 redist)
|
||||
:: openal\oalinst.exe (OpenAL redist)
|
||||
:: UltraVNC\UltraVNC_x64_Setup.exe (UltraVNC server + UltraVNC.inf)
|
||||
:: =============================================================================
|
||||
|
||||
setlocal enabledelayedexpansion
|
||||
@@ -40,6 +38,10 @@ set CONSOLE_PORT=53290
|
||||
set AUTOLOGIN_USER=Firestorm
|
||||
set AUTOLOGIN_PASS=thor6
|
||||
|
||||
:: Workgroup every pod on this site joins. Keep it the same across all pods so
|
||||
:: the mw4files / c shares browse cleanly. Change once per site if needed.
|
||||
set WORKGROUP=Tesla
|
||||
|
||||
:: ── Admin check ───────────────────────────────────────────────────────────────
|
||||
net session >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
@@ -157,10 +159,15 @@ if exist "%UVNC_SETUP%" (
|
||||
start "" /wait "%UVNC_SETUP%" /verysilent /norestart /loadinf="%ROOT%UltraVNC\UltraVNC.inf"
|
||||
)
|
||||
|
||||
:: Enable SMB1 client (required by game networking)
|
||||
echo Enabling SMB1 file sharing...
|
||||
:: Enable SMB1 client AND server (required by game networking). The pod both
|
||||
:: reaches SMB1 shares (client) and hosts the mw4files / c shares below (server),
|
||||
:: and Win10/11 ship both SMB1 sub-features off by default — so enable all three
|
||||
:: (umbrella + client + server); each child pulls in the umbrella via /All.
|
||||
echo Enabling SMB1 file sharing (client + server)...
|
||||
dism /Online /Enable-Feature /FeatureName:SMB1Protocol /All /NoRestart >nul 2>&1
|
||||
echo SMB1 enabled (reboot required to take effect).
|
||||
dism /Online /Enable-Feature /FeatureName:SMB1Protocol-Client /All /NoRestart >nul 2>&1
|
||||
dism /Online /Enable-Feature /FeatureName:SMB1Protocol-Server /All /NoRestart >nul 2>&1
|
||||
echo SMB1 client + server enabled (reboot required to take effect).
|
||||
|
||||
:: Create and share game-data folders (closed network — open to Everyone).
|
||||
echo Creating network shares...
|
||||
@@ -175,6 +182,14 @@ net share c /delete >nul 2>&1
|
||||
net share c=C:\ /grant:Everyone,FULL >nul 2>&1
|
||||
echo "Share \\%COMPUTERNAME%\c -> C:\ (Everyone: Full)"
|
||||
|
||||
:: Join the site workgroup so every pod shares one browse list. Add-Computer
|
||||
:: throws if the machine is already in that workgroup, so the error is ignored.
|
||||
:: Takes effect on the reboot at the end of this script (same as the hostname
|
||||
:: SecureConfig applies on first boot).
|
||||
echo Joining workgroup "%WORKGROUP%"...
|
||||
powershell -NoProfile -Command "try { Add-Computer -WorkgroupName '%WORKGROUP%' -Force -ErrorAction Stop } catch { }" >nul 2>&1
|
||||
echo Workgroup set to "%WORKGROUP%" (effective after reboot).
|
||||
|
||||
:: Enable DirectPlay (required by older games)
|
||||
echo Enabling DirectPlay...
|
||||
dism /Online /Enable-Feature /FeatureName:DirectPlay /All /NoRestart >nul 2>&1
|
||||
|
||||
Reference in New Issue
Block a user