ДС
$verServer = '8.3.15.25'
Start-process -File 'sc.exe' -argumentlist @('config', '"RpcLocator"','binpath= ', [String]::Format('"C:\Program Files\1cv8\{0}\bin\ragent.exe"', $verServer))
Start-process -File 'sc.exe' -argumentlist @('config', '"1C:Enterprise Srv_Lic_HQ"','binpath= ', [String]::Format('"\"C:\Program Files\1cv8\{0}\bin\ragent.exe"\ -srvc -agent -regport 1541 -port 1540 -range 1560:1591 -d \"C:\Program Files\1cv8\srvinfo_srv_hq\""', $currentversion))
Вот такая комбинация возвращает запись что всё успешно, но почему то запись в службе не меняется

