Skip to content

Instantly share code, notes, and snippets.

@240596448
Forked from EvilBeaver/install_ras.cmd
Last active December 19, 2019 19:35
Show Gist options
  • Save 240596448/14d8a9b9d01592dd7f77b2a84888d57c to your computer and use it in GitHub Desktop.
Save 240596448/14d8a9b9d01592dd7f77b2a84888d57c 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="1C:Ras 8.3 %Agent%"
set BinPath="\"C:\Program Files\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