Ylianst/MeshAgent

How to change service name of Mesh Agent

Opened this issue · 2 comments

How to change service name of Mesh Agent? I tried passing --serviceName while installing mesh agent but still servicename is not getting changed.

@Hareeshsuji, have you tried using --meshServiceName ?

Easiest way to do this would be to add the whole agentCustomization in your config.json

 "_agentCustomization": {
        "displayName": "Company® Product™",
        "description": "Company® Product™ agent for remote monitoring, management and assistance.",
        "companyName": "Company®",
        "serviceName": "companyagent",
        "image": "agent-logo.png",
        "fileName": "compagnyagent"
      },

You are looking for the "serviceName" parameter.
Also, the CompanyName will determine the name of the install folder, for example C:\Program Files\Company Name\companyAgent\companyMeshAgent.exe. As you can see serviceName is what the install subfolder be named, ideal if you have multiple agents installed (for domains)