Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

How to update the SQL Server name for Hubshare On-Premise

Last updated on 17 June 2023

Admin
M-Files Hubshare

Overview

If you change your SQL Server name, you also need to update it for Hubshare.

This article will show you how to update the SQL Server name hosting the Hubshare database in the registry keys of the Hubshare product.

Solution

  1. Open PowerShell as an administrator.
  2. Change the location to your current package, inside the \LatestReleasePackage\Tool subfolder. (In most cases, your packages are in C:\Hubshare\Packages).
  3. Run this command to decrypt the registry keys:
    .\Hubshare.Tool.Update.exe /reg-decrypt
  4. Answer "YES" to the question that will appear in the PowerShell window:image.png
  5. Open your Registry Editor, and go to this path:
    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Hubshare\Default
  6. Edit the "Database" string and fill the "Data Source=" field with the new name or your SQL Server hosting the Hubshare database.
  7. You will now need to re-encrypt the database registry keys by running this in PowerShell:
    .\Hubshare.Tool.Update.exe /reg-encrypt
  8. Answer "YES" again to the question appearing in the PowerShell window:image.png

The Database value should be encrypted again, as it should also look like this:

image.png

Still need help?

On this page