We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How change mid servers display name in servicenow instance.

Hrishabh Kumar
Tera Guru

I've setup mid server for the dev environment correctly, and it is functioning as expected. I've been asked to change the name of the mid server that displays in ServiceNow. 

Note: There is no need to change the service name. I need to change the display name in the ServiceNow instance.

 

Let me know how to do that.

1 ACCEPTED SOLUTION

Tanushree Maiti
Tera Patron

Hi @Hrishabh Kumar 

 

Refer KB: KB3008757 How to Rename a MID Server on the ServiceNow Instance 

 

Resolution

Steps:

  1. Stop the MID Server service. On the MID Server host, open Windows Services (services.msc) or the equivalent service manager, locate the ServiceNow MID Server service, and stop it.
  2. Update the MID Server record on the instance. Log into the ServiceNow instance and navigate to MID Server > Servers. Open the MID Server record that currently has the old name. Change the Name field to the desired new name and click Update. Note the Sys ID of this record (visible in the URL bar or by adding sys_id to the form).
  3. Edit the config.xml on the MID Server host. Open the config.xml file in the MID Server agent directory and update the following parameters:
    Parameter Action Example
    nameSet to the new MID Server name (must match the Name field updated in Step 2)<parameter name="name" value="NEW_NAME"/>
    mid_sys_idVerify it matches the Sys ID from Step 2. Only change if it does not match.<parameter name="mid_sys_id" value="[sys_id_from_step_2]"/>

    Important: Do not change the mid_sys_id unless it does not match the Sys ID on the instance record. If it already matches, leave it as-is.

  4. Save the config.xml file and close the editor.
  5. Start the MID Server service. Return to Windows Services (or the equivalent) and start the ServiceNow MID Server service.
  6. Validate the MID Server. On the instance, open the MID Server record and click Invalidate. Once invalidated, a Validate button will appear — click it to complete re-validation.
  7. Resolve any MID Server issues. If a "home directory changed" issue appears in the MID Server Issues list, manually set its State to Resolved. This alert is expected when the installation path reflects the new hostname and is safe to clear (see KB0743043).

Verification

After completing the steps above, confirm all of the following:

  • The MID Server record on the instance displays the new name
  • The MID Server status shows "Up" and "Validated"
  • The config.xml name parameter retains the new value after a service restart (no revert)
  • No active MID Server issues remain
  • Existing scheduled jobs, discovery schedules, and integrations continue to execute on the renamed MID Server

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

View solution in original post

9 REPLIES 9

Hi @Tanushree Maiti 

Thanks for highlighting this article KB3008757 How to Rename a MID Server on the ServiceNow Instance .

 

Following the same steps fulfilled my requirement. In addition, I got a keypair-related issue after I restarted the mid server, which I resolved by doing "ReKey" action on the mid server.

 

Thanks and regards

Hrishabh Kumar

Ankur Bawiskar
Tera Patron

@Hrishabh Kumar 

Steps

1) stop the mid server service

2) open the config.xml file and edit the name there

3) then start the service again

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi  @Ankur Bawiskar 

Thanks for the response. I've tried this and validated that it does not work, updating only the config.xml won't change the name of the mid server in ServiceNow. Solution proposed by  @Tanushree Maiti has fixed the issue.

 

Thanks and regards

shubhamseth
Giga Sage

@Hrishabh Kumar 

 

The MID Server name displayed in ServiceNow is controlled by the MID Server configuration, not by simply editing the record in the instance.

To rename it:

  1. Stop the MID Server service.
  2. Open:

    <MID Server>\agent\config.xml
  3. Update the value of:

    <parameter name="name" value="New_MID_Server_Name"/>
  4. Save the file.
  5. Restart the MID Server service.

After the MID reconnects, ServiceNow will register it with the new name.

 

 

Issue resolved? → Mark as Correct


Found value? → Mark as Helpful


Hi @shubhamseth 

Thanks for the response. I've tried this and validated that it does not work, updating only the config.xml won't change the name of the mid server in ServiceNow. Solution proposed by @Tanushree Maiti has fixed the issue.

 

Thanks and regards