-
-
Save 240596448/14d8a9b9d01592dd7f77b2a84888d57c to your computer and use it in GitHub Desktop.
Установка сервера администрирования 1С в виде службы
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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