Επεξεργασία

Κοινή χρήση μέσω


How to set up the administration service in Configuration Manager

Applies to: Configuration Manager (current branch)

Use the steps in this article to set up the administration service on your SMS Provider. Before you start, read the administration service Prerequisites.

Enable secure HTTPS communication

Configure the administration service to use a secure HTTPS connection to protect the data in transit across the network.

Starting in version 2010, you no longer need to enable IIS on the SMS Provider for the administration service. The site creates a self-signed certificate for the SMS Provider, and automatically binds it without requiring IIS. If you previously had IIS installed on the SMS Provider, you can remove it. Then restart the SMS_REST_PROVIDER component. Remember that you need to open HTTPS port 443 on your firewall.

The administration service automatically uses the site's self-signed certificate. This behavior helps reduce the friction for easier use of the administration service. The site always generates this certificate. The administration service ignores the Enhanced HTTP site setting, as it always uses the site's certificate even if no other site system is using Enhanced HTTP. You can still manually bind a PKI-based server authentication certificate. If you've already bound a PKI certificate to port 443 on the SMS Provider server, the administration service uses that existing certificate.

Use a server authentication certificate

Note

By default, the administration service automatically uses the site's self-signed certificate. You can still manually bind a PKI-based server authentication certificate. Before you can bind your PKI-based certificate, manually unbind the site's self-signed certificate from port 443 on the SMS Provider.

There are two primary methods of using a server authentication certificate:

  • From your organization's public key infrastructure (PKI)

    • If your environment already has a PKI, you can use it to issue a server authentication certificate for the SMS Provider. This certificate is similar to the certificate you would use for a management point or distribution point. For more information, see PKI certificate requirements.

    • Most enterprise PKI implementations add the trusted root CAs to Windows clients. For example, using Active Directory Certificate Services with group policy. If you issue the certificate from a CA that your clients don't automatically trust, add the CA trusted root certificate to clients. You can scope this trust to only the clients that need to access the administration service.

  • Use a certificate from a public and globally trusted certificate provider. Windows clients include trusted root certificate authorities (CAs) from these providers. By using a server authentication certificate issued by one of these providers, your clients automatically trust it.

Once you have a server authentication certificate for the SMS Provider, you need to manually bind it to port 443 in IIS on the server that hosts the SMS Provider role.

First, add the certificate to the server. Import the certificate into the local machine's Personal store. Then use one of the following options to bind the certificate:

Bind the certificate with IIS

If the server with the SMS Provider role has the IIS Management Console, use the Edit Bindings action on the default web site. Add port 443, and specify your certificate from the machine's certificate store.

Note

The SMS Provider role doesn't require IIS. This procedure is using the IIS console to bind the certificate. These certificate bindings are for the machine, not any specific service.

Bind the certificate with netsh

Use the netsh command line to bind the certificate:

netsh http add sslcert ipport=0.0.0.0:443 certhash=<thumbprint> appid={<GUID>}

Where <thumbprint> is the thumbprint of the installed certificate, and <GUID> is a random GUID.

Tip

Use the Windows PowerShell cmdlet New-Guid to generate a random GUID.

For example:

netsh http add sslcert ipport=0.0.0.0:443 certhash=5aef9c1f348d4d1c8675309ca3363c2a5d3b617d appid={e9f0631d-6d1c-41b4-9617-454705f9c011}

Enable internet access

You can use the administration service on-premises only, or you can enable it for access through the cloud management gateway (CMG). Some scenarios require access to the administration service from the internet, such as tenant attach or app approvals via email.

Before you can configure the SMS Provider to allow CMG traffic, first set up a CMG. For more information, see Overview of CMG.

Then use the following process to enable the administration service through the CMG:

  1. In the Configuration Manager console, go to the Administration workspace, expand Site Configuration, and select the Servers and Site System Roles node.

  2. Select the server with the SMS Provider role.

    Tip

    On the ribbon, in the Home tab, select Servers with Role and then select SMS Provider. This action shows you the site systems with that role.

  3. In the details pane, select the SMS Provider role, and select Properties in the ribbon on the Site Role tab.

  4. Select the option to Allow Configuration Manager cloud management gateway traffic for administration service.

To access the administration service from the internet, replace the SMS Provider FQDN with the CMG endpoint. For example:

https://CONTOSO.CLOUDAPP.NET/CCM_Proxy_MutualAuth/72186325152220500/AdminService

Tip

To get the value for this endpoint, use the following steps:

  • Create a CMG. For more information, see Set up a CMG.

  • On an active client, open a Windows PowerShell command prompt as an administrator.

  • Run the following command:

    (Get-WmiObject -Namespace Root\Ccm\LocationServices -Class SMS_ActiveMPCandidate | Where-Object {$_.Type -eq "Internet"}).MP
    

Enable console usage

Note

Starting in version 2111, the option to Enable the Configuration Manager console to use the administration service is removed. The administration service is always on, so the console will use it when needed.

Enable some nodes of the Configuration Manager console to use the administration service. This change allows the console to communicate with the SMS Provider over HTTPS instead of via WMI.

  1. In the Configuration Manager console, go to the Administration workspace, expand Site Configuration, and select the Sites node. In the ribbon, select Hierarchy Settings.

  2. On the General page, select the option to Enable the Configuration Manager console to use the administration service.

This change only affects the following nodes under the Security node in the Administration workspace:

  • Administrative Users
  • Security Roles
  • Security Scopes
  • Console Connections

When you select one of these nodes, if the following error message displays:

Configuration Manager can't connect to the administration service

Review the information below the error. Then verify that the administration service is enabled, configured, and functional. For more information including log files to review, see the Verify section.

Verify

When the site installs the administration service, it logs activity to the RESTPROVIDERSetup.log file in the Configuration Manager installation directory. By default this path is C:\Program Files\Microsoft Configuration Manager\logs.

The site tracks the health state of the administration service in the SMS_REST_PROVIDER.log file. You can see the service start and information about the certificate.

Test the administration service by doing a simple query in a web browser, for example:

https://smsprovider.contoso.com/adminservice/v1.0/$metadata

The administration service logs its activity to the adminservice.log file on the SMS Provider server in the Configuration Manager installation directory.

For the above metadata query, the log file shows the following lines:

Processing incoming request for resource [https://smsprovider.contoso.com/adminservice/v1.0/%24metadata], method: [GET], User - [CONTOSO\jqadmin]
...
Completing request with response code [200] reason [OK]

Next steps