Applies to: Configuration Manager (current branch)
Use the service connection tool when your service connection point is in offline mode. You can also use it when your Configuration Manager site system servers aren't connected to the internet. The tool can help you keep your site up to date with the latest updates to Configuration Manager.
When you run the tool, it connects to the Configuration Manager cloud service, uploads usage information for your hierarchy, and downloads updates. Uploading usage data is necessary to enable the cloud service to provide the correct updates for your environment.
The site has a service connection point, and you configure it for an Offline, on-demand connection.
Run the tool from a command prompt as an administrator. There's no user interface.
You run the tool from the service connection point and a computer that can connect to the internet. Each of these computers needs to have a x64-bit OS, and have the following components:
Both the Visual C++ Redistributable x86 and x64 files. By default, Configuration Manager installs the x64 version on the computer that hosts the service connection point. This tool requires the Microsoft Visual C++ 2015-2019 redistributable package (14.28.29914.0), or later, on the computer that you are running it from. To download this component, see Microsoft Visual C++ Redistributable latest supported downloads.
This tool requires .NET version 4.6.2, and version 4.8 is recommended. For more information, see Site and site system prerequisites.
Starting in version 2309, this tool requires installation of the ODBC Driver 18 for SQL Server (x64). To download this component, see Download ODBC Driver for SQL Server.
The account you use to run the tool needs the following permissions:
Local administrator on the computer that hosts the service connection point
Read permissions to the site database
You need a method to transfer the files between the computer with internet access and the service connection point. For example, a USB drive with sufficient free space to store the files and updates.
Prepare: Run the tool on the service connection point. It puts your usage data into a .cab file at the location you specify. Copy the data file to the computer with an internet connection.
Connect: Run the tool on the computer with an internet connection. It uploads your usage data, and then downloads Configuration Manager updates. Copy the downloaded updates to the service connection point.
You can upload multiple data files at one time, each from a different hierarchy. You can also specify a proxy server and a user for the proxy server.
Import: Run the tool on the service connection point. It imports the updates, and adds them to your site. You can then view and install those updates in the Configuration Manager console.
Put all exported data files from separate hierarchies into the same folder. Give each file a unique name. If necessary, you can manually rename them.
When you run the tool to upload data to Microsoft, you specify the folder that contains the data files.
When you run the tool to import data, the tool only imports the data for that hierarchy.
If the computer with an internet connection requires a proxy server, the tool supports a basic proxy configuration. Use the optional parameters -proxyserveruri and -proxyusername. For more information, see Command-line parameters.
The tool supports options to control what files you download. By default, the tool downloads only the latest available update that applies to the version of your site. It doesn't download hotfixes.
To modify this behavior, use one of the following parameters to change what files it downloads:
-downloadall: Download all updates, including updates and hotfixes, whatever the version of your site.
-downloadhotfix: Download all hotfixes whatever the version of your site.
-downloadsiteversion: Downloads updates and hotfixes with a later version than the version of your site.
For more information, see Command-line parameters.
The service connection tool is in the Configuration Manager installation media at the following path: . Always use the service connection tool that matches the version of Configuration Manager that you use. All of these files must be in the same folder for the service connection tool to work.
Copy the ServiceConnectionTool folder with all of its contents to the computer with an internet connection.
In this procedure, the command-line examples use the following file names and folder locations. You don't need to use these paths and file names. You can use alternatives that match your environment and preferences.
The path to the Configuration Manager installation media source files on the service connection point:
The path to a USB drive where you store the data to transfer between computers:
The name of the data file that you export from the site:
The name of the empty folder where the tool stores downloaded updates for Configuration Manager:
On the computer that hosts the service connection point, open a command prompt as an administrator, and change directory to the tool location. For example:
Run the following command to prepare the data file:
The data in the file is based on the level of diagnostic and usage data that you configure for the site. For more information, see Overview of diagnostics and usage data. You can use the tool to export the data to a CSV file to view the contents. For more information, see -export.
After the tool finishes exporting the usage data, copy the data file to a computer that has access to the internet.
On the computer with internet access, open a command prompt as an administrator, and change directory to the tool location. This location is a copy of the entire ServiceConnectionTool folder. For example:
Run the following command to upload the data file and download the Configuration Manager updates:
For more examples, see Command line parameters.
After the tool finishes downloading the updates, copy them to the service connection point.
On the computer that hosts the service connection point, open a command prompt as an administrator, and change directory to the tool location. For example:
Run the following command to import the updates:
After the import completes, close the command prompt. It only imports updates for the applicable hierarchy.
In the Configuration Manager console, go to the Administration workspace, and select the Updates and Servicing node. Imported updates are now available to install. For more information, see Install in-console updates.
ServiceConnectionTool.log: Each time you run the service connection tool, it writes to this log file. The path of the log file is always the same location as the tool. This log file provides simple details about the tool usage based on the parameters you use. Each time you run the tool, the tool replaces any existing log file.
ConfigMgrSetup.log: During the Connect phase, the tool writes to this log file at the root of the system drive. This log file provides more detailed information. For example, what files the tool downloads, and if the hash checks are successful.
This section lists in alphabetical order all of the available parameters for the service connection tool.
Use during the Connect phase on the computer with internet access. It connects to the Configuration Manager cloud service to upload the data file, and download updates.
It requires the following parameters:
- -usagedatasrc: The location of the data file to upload
- -updatepackdest: A path for the downloaded updates
You can also use the following optional parameters:
- -proxyserveruri: The FQDN of the proxy server
- -proxyusername: A user name for the proxy server
- -downloadall: Download everything, including updates and hotfixes, whatever the version of your site.
- -downloadhotfix: Download all hotfixes, whatever the version of your site.
- -downloadsiteversion: Download updates and hotfixes that have a later version than the version of your site.
Example of connect without a proxy server
Example of connect with a proxy server
Example of connect to download only site version applicable updates
A required parameter with the -export parameter to specify the path and file name of the CSV file to export. For more information, see -export.
An optional parameter with the -connect parameter to download everything, including updates and hotfixes, whatever the version of your site. For more information, see -connect.
An optional parameter with the -connect parameter to only download all hotfixes, whatever the version of your site. For more information, see -connect.
An optional parameter with the -connect parameter to only download updates and hotfixes that have a later version than the version of your site. For more information, see -connect.
Use during the Prepare phase to export usage data to a CSV file. Run it as an administrator on the service connection point. This action lets you review the contents of the usage data before you upload to Microsoft. It requires the -dest parameter to specify the location of the CSV file.
Example of export
Use during the Import phase on the service connection point to import the updates to the site. It requires the -updatepacksrc parameter to specify the location of the downloaded updates.
Example of import
Use during the Prepare phase on the service connection point to export usage data from the site. It requires the -usagedatadest parameter to specify the location of the exported data file.
Example of prepare
An optional parameter with the -connect parameter to specify the FQDN of your proxy server. For more information, see -connect.
An optional parameter with the -connect parameter to specify the username to authenticate with your proxy server. For more information, see -connect.
A required parameter with the -connect parameter to specify a path for the downloaded updates. For more information, see -connect.
A required parameter with the -import parameter to specify a path of the downloaded updates. For more information, see -import.
A required parameter with the -prepare parameter to specify a path and file name of the exported data file. For more information, see -prepare.
Install in-console updates