- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Refer KB: KB3008757 How to Rename a MID Server on the ServiceNow Instance
Resolution
Steps:
- 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.
- 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).
- 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
name Set to the new MID Server name (must match the Name field updated in Step 2) <parameter name="name" value="NEW_NAME"/> mid_sys_id Verify 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.
- Save the config.xml file and close the editor.
- Start the MID Server service. Return to Windows Services (or the equivalent) and start the ServiceNow MID Server service.
- 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.
- 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
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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:
- Stop the MID Server service.
-
Open:
<MID Server>\agent\config.xml -
Update the value of:
<parameter name="name" value="New_MID_Server_Name"/> - Save the file.
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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