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 distribute vault connections using group policy objects

Last updated on 24 July 2025 · 6 min read

Admin

Overview

This document describes how to distribute vault connections using group policy objects (GPO).

Document vault connection configurations are stored in either HKEY_CURRENT_USER (HKCU) hive or in HKEY_LOCAL_MACHINE (HKLM) hive in Windows registry. Vault connections distributed to HKEY_CURRENT_USER are only visible for the user who is currently logged in to Windows.

  • If you enable the "Visible to all users on this computer" option in the document vault connection settings, then the settings are stored in HKLM.
  • If you do not enable this option, then the settings are stored in HKCU.

Usually, when distributing settings via GPO, you want to push the settings to HKLM, so that end users can't change the settings by themselves.

You can create a new GPO for M-Files settings and link the GPO to all computers in your domain regardless of whether M-Files will be installed on them or not. The M-Files-specific registry settings will not have any effect on the computers if M-Files Desktop is not installed: the registry values will be present in the user's HKLM hive, but no application other than M-Files should use those settings. The settings will then become effective if M-Files Desktop is installed on the computer.

Note that M-Files supports only the M-Files-specific registry settings, the general GPO setup, distribution, configuration and ensuring it works as expected is up to local system administrators.

Vault Connection Registry Key Details

Here is a list of document vault connection settings in the registry:

  • NetworkAddress: Specifies your M-Files server name or server IP address. e.g. "m-files.company.com", or "my-vault.cloudvault.m-files.com", or "192.168.1.102". This value is used to connect to the M-Files Server.
  • ProtocolSequence: Specifies what protocol is used when connecting to the server. We recommend using the gRPC protocol (registry value "grpc").
    • For the obsolete TCP/IP protocol, set the value to "ncacn_ip_tcp".
    • For the obsolete HTTPS protocol, set the value to "ncacn_http" (note that there is no "s" at the end of the value, though secure HTTPS is used).
    • If you are still using an obsolete protocol, see this guide to migrate to gRPC: Switching from RPC to gRPC in an M-Files System.pdf.
  • Endpoint: Specifies the server port to connect to. In the example below it is the standard HTTPS port, 443, which is also used for gRPC connections to M-Files Cloud Vaults.
  • Secured: Specifies the value for the "Enforce encrypted connection" option. In the example below, we set the value to 1 (enabled).
    • In general, you should prefer encrypted connections, though in on-premises environments it is not strictly necessary.
    • In some cases (such as cloud vaults), unencrypted connections are not supported at all.
  • ServerVaultName: Specifies which vault on the server the connection points to. In the example below, we are connecting to "Sample Vault". Make sure to set this to your actual vault name.
  • AuthType: Specifies the authentication type to use as on the connection. Available values are: 
    • 1 = Current Windows User
    • 2 = Specific Windows User
    • 3 = M-Files User
  • AutoLogin: Specifies a value for the "Log in automatically when Windows is started" option. 
    • Set the value to 1 to trigger users to log into the vault when they log in to Windows. Depending on the authentication method, this may prompt the user to provide credentials.
    • Set the value to 0 if you want the login process to be triggered only when users actually access the vault.
    • Prefer value 1 for vaults that are used daily, and 0 for vaults that are not in daily use.
  • ServerVaultGUID: Specifies the GUID of the document vault on the server. In the example below, the GUID is "{F455495A-AA8B-4A44-BA0E-E367CB17E889}". You can get the GUID for your vault from the vault Properties in M-Files Admin.
  • ID: Specifies an identification number for the connection. This is a computer-specific running number. A connection to the same vault can have a different ID on different computers. If you don't have any another vault connections, set this to 1. The IDs do not have to be sequential. Avoid duplicates if you are adding more than one connection.
  • HTTPProxy: Specifies the forward proxy address for the "HTTP Proxy" setting. This setting is available when using gRPC or HTTPS as protocol. In the example below, we don't need to use a forward proxy, so we leave the value it empty.
  • InfoTip: Specifies a tooltip that is shown in Windows File Explorer when you hover the mouse over a vault's name on the M drive.
  • SPN: Specifies a Service Principal Name (SPN), in case the default SPN is not used. It is quite rare that a specific SPN needs to be used, so we leave it empty in the example below.

Example

Example how to distribute an M-Files vault connection via GPO:

  1. Open the Group Policy Management console (gpmc.msc).
  2. Navigate to the Group Policy Objects node under your forest and domain.
  3. Right-click the Group Policy Objects node and choose New to create a new unlinked GPO.
  4. Enter "Distribute M-Files vault connections" as the name for the new GPO and click OK.
  5. Right-click the "Distribute M-Files vault connections" GPO and choose Edit. The Group Policy Management Editor console appears.

In the Group Policy Management Editor console, perform these steps to add an M-Files vault connection to this GPO:

  1. In Group Policy Management Editor, navigate to User Configuration -> Preferences -> Windows Settings -> Registry.
  2. Right-click the Registry node and choose New -> Registry Item. The New Registry Properties window appears.
  3. Set Action to Update.
  4. Set Hive to HKEY_LOCAL_MACHINE.
  5. Set Key path to the name of the registry key, such as the following, ending with vault name: "Software\Motive\M-Files\%MFilesVersion%\Client\MFClient\Vaults\Sample Vault"
    • "%MFilesVersion%" is an environment variable available on computers with M-Files installed, it will be automatically resolved to the actual M-Files version that is installed on the computer, so this single setting will cover all M-Files versions.
  6. Set value names, value types and value data as in the following example:   
     
    NumberValue nameValue type Example value data 
    1NetworkAddressREG_SZsamplevault.cloudvault.m-files.com
    2ProtocolSequenceREG_SZgrpc
    3EndpointREG_SZ443
    4SecuredREG_DWORD1
    5ServerVaultNameREG_SZSample Vault
    6AuthTypeREG_DWORD00000001
    7AutoLoginREG_DWORD00000000
    8ServerVaultGUIDREG_SZ{F455495A-AA8B-4A44-BA0E-E367CB17E889}
    9IDREG_DWORD1
    10HTTPProxyREG_ SZ 
    11InfoTipREG_ SZBrowse to this folder to view the contents of this document vault.
    12SPNREG_ SZ 
  7. Save the registry item by clicking OK. 
  8. After the GPO is applied to a computer, the settings in the registry should look like this:   
    A screenshot of a computer                                 AI-generated content may be incorrect.

Verify on a target computer that the registry settings are written to the correct location. Run gpupdate /force to force an immediate update of the GPOs that apply to the computer and then run regedit to verify that the registry settings appear in the registry as expected. If not, verify that the computer has M-Files Desktop installed and that the %MFilesVersion% variable exists in Windows' system variables list.

Reference Documents

Installing M-Files Desktop, M-Files Server, and M-Files Admin with Advanced Options

Switching from RPC to gRPC in an M-Files System.pdf

Still need help?