Last active
April 3, 2025 22:15
-
-
Save EvilBeaver/19761917ce247e945d0c6d9b7ce0e9d0 to your computer and use it in GitHub Desktop.
Установка сервера администрирования 1С в виде службы
This file contains hidden or 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="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