Skip to content

Instantly share code, notes, and snippets.

@JohnyDeath
Forked from EvilBeaver/install_ras.cmd
Created October 24, 2018 12:10
Show Gist options
  • Save JohnyDeath/bd32c4e0160942a206d981074690dde0 to your computer and use it in GitHub Desktop.
Save JohnyDeath/bd32c4e0160942a206d981074690dde0 to your computer and use it in GitHub Desktop.
Установка сервера администрирования 1С в виде службы
@echo off
rem %1 – полный номер версии 1С:Предприятия
rem %2 – имя сервера (с портом агента). Важно указать именно 1540, а не 1541
rem %3 – порт RAS
set SrvUserName=LocalSystem
set SrvUserPwd=""
set Agent=%2
set RASPort=%3
set SrvcName="ras %Agent%"
set BinPath="\"C:\Program Files (x86)\1cv8\%1\bin\ras.exe\" cluster --service --port=%RASPort% %Agent%"
set Description="1C:8.3 RAS %1 %Agent%"
sc stop %SrvcName%
sc delete %SrvcName%
sc create %SrvcName% binPath= %BinPath% start= auto obj= %SrvUserName% password= %SrvUserPwd% displayname= %Description%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment