管理 NPS 範本Manage NPS Templates

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

您可以使用的網路原則伺服器 (NPS) 範本建立設定項目,例如撥號使用者服務遠端驗證 (RADIUS) 戶端或共用的密碼,您可以在本機伺服器 NPS 及匯出其他 NPS 伺服器上使用重複使用。You can use Network Policy Server (NPS) templates to create configuration elements, such as Remote Authentication Dial-In User Service (RADIUS) clients or shared secrets, that you can reuse on the local NPS server and export for use on other NPS servers.

管理範本提供 NPS 主機,您可以建立、修改、delete、複製,且檢視 NPS 範本使用中的節點。Templates Management provides a node in the NPS console where you can create, modify, delete, duplicate, and view the use of NPS templates. NPS 範本專為減少的時間和成本所需設定 NPS 一或多個的伺服器上。NPS templates are designed to reduce the amount of time and cost that it takes to configure NPS on one or more servers.

下列 NPS 範本類型是適用於管理範本 ] 中的設定。The following NPS template types are available for configuration in Templates Management.

  • 共用密碼Shared Secrets. 這個範本輸入可讓您指定共用的密碼,您可以選取重複使用(範本 NPS 主機的適當位置中)時設定 RADIUS 戶端與伺服器。This template type makes it possible for you to specify a shared secret that you can reuse (by selecting the template in the appropriate location in the NPS console) when you configure RADIUS clients and servers.

  • RADIUS 戶端RADIUS Clients. 這個範本輸入可讓您進行 RADIUS client 設定,您可以在適當的位置在 NPS 主控台中,選取範本重複使用。This template type makes it possible for you to configure RADIUS client settings that you can reuse by selecting the template in the appropriate location in the NPS console.

  • 遠端 RADIUS 伺服器]Remote RADIUS Servers. 此範本可讓您設定遠端 RADIUS 伺服器,您可以在適當的位置在 NPS 主控台中,選取範本重複使用。This template makes it possible for you to configure remote RADIUS server settings that you can reuse by selecting the template in the appropriate location in the NPS console.

  • IP 篩選器IP Filters. 此範本可讓您建立網際網路通訊協定第 4 (IPv4) 和「網際網路通訊協定第 6 (IPv6) 篩選器,您可以重新使用 \(來選取範本 NPS console\ 的適當位置中)時的網路原則設定。This template makes it possible for you to create Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6) filters that you can reuse (by selecting the template in the appropriate location in the NPS console) when you configure network policies.

建立 NPS 範本Create an NPS Template

設定範本與不同直接設定 NPS 伺服器。Configuring a template is different than configuring the NPS server directly. 建立範本不會影響 NPS 伺服器的功能。Creating a template does not affect the NPS server's functionality. 它是只有當您選取適當的位置在 NPS 主控台範本和套用範本範本影響 NPS 伺服器功能。It is only when you select the template in the appropriate location in the NPS console and apply the template that the template affects the NPS server functionality.

例如,如果您設定在主機 NPS RADIUS client RADIUS 戶端與伺服器,您改變 NPS 伺服器設定,並需要設定 NPS 與您的網路存取伺服器其中一個步驟。For example, if you configure a RADIUS client in the NPS console under RADIUS Clients and Servers, you alter the NPS server configuration and take one step in configuring NPS to communicate with one of your network access servers. \ (下一步就是設定網路的存取伺服器通訊具有 NPS (NAS)。)(The next step is to configure the network access server (NAS) to communicate with NPS.)

不過,如果您設定新的RADIUS 戶端範本 NPS 在主機中的管理範本而非建立新的 RADIUS client 在RADIUS 戶端與伺服器,您已建立範本,但尚未您有未變更 NPS 伺服器功能。However, if you configure a new RADIUS Clients template in the NPS console under Templates Management rather than creating a new RADIUS client under RADIUS Clients and Servers, you have created a template, but you have not altered the NPS server functionality yet. 若要變更的 NPS server 功能,您必須從 NPS 主控台正確的位置套用範本。To alter the NPS server functionality, you must apply the template from the correct location in the NPS console.

下列程序如何建立新的範本指示。The following procedure provides instructions on how to create a new template.

資格在系統管理員,或相當於,才能完成此程序最小值。Membership in Administrators, or equivalent, is the minimum required to complete this procedure.

若要建立 NPS 範本To create an NPS template

  1. NPS 伺服器,在伺服器管理員中,按一下 [工具,然後按一下 [的網路原則伺服器On the NPS server, in Server Manager, click Tools, and then click Network Policy Server. NPS 主控台開啟。The NPS console opens.

  2. 在 NPS 主控台中,展開管理範本,例如用滑鼠右鍵按一下範本類型,RADIUS 戶端,然後按一下 [In the NPS console, expand Templates Management, right-click a template type, such as RADIUS Clients, and then click New.

  3. 新範本屬性對話方塊,您可以使用設定範本。A new template properties dialog box opens that you can use to configure your template.

適用於 NPS 範本Apply an NPS Template

您可以使用您已經建立範本管理範本藉由瀏覽至您可以在此套用範本 NPS 主機的位置。You can use a template that you have created in Templates Management by navigating to a location in the NPS console where you can apply the template. 例如,如果您想要套用共用機密範本 RADIUS client 設定,您可以使用下列程序。For example, if you want to apply a Shared Secrets template to a RADIUS client configuration, you can use the following procedure.

資格在系統管理員,或相當於,才能完成此程序最小值。Membership in Administrators, or equivalent, is the minimum required to complete this procedure.

若要套用 NPS 範本To apply an NPS template

  1. NPS 伺服器,在伺服器管理員中,按一下 [工具,然後按一下 [的網路原則伺服器On the NPS server, in Server Manager, click Tools, and then click Network Policy Server. NPS 主控台開啟。The NPS console opens.

  2. 在 [NPS 主控台中,展開RADIUS 戶端與伺服器,然後展開RADIUS 戶端In the NPS console, expand RADIUS Clients and Servers, and then expand RADIUS Clients.

3.的RADIUS 戶端,在詳細資料窗格中,以滑鼠右鍵按一下您想要套用 NPS 範本,然後按一下 [的 RADIUS client屬性3.In RADIUS Clients, in the details pane, right-click the RADIUS client to which you want to apply the NPS template, and then click Properties.

  1. 在屬性] 對話方塊方塊 RADIUS client,在選取現有的共用機密範本,選取您想要從清單中範本套用範本。In the properties dialog box for the RADIUS client, in Select an existing Shared Secrets template, select the template that you want to apply from the list of templates.

匯出或匯入 NPS 範本Export or Import NPS Templates

您可以匯出範本,以便使用其他 NPS 伺服器,或您可以匯入到範本管理範本在本機電腦上使用。You can export templates for use on other NPS servers, or you can import templates into Templates Management for use on the local computer.

資格在系統管理員,或相當於,才能完成此程序最小值。Membership in Administrators, or equivalent, is the minimum required to complete this procedure.

若要匯出或匯入 NPS 範本To export or import NPS templates

  1. 若要匯出 NPS 範本,在 NPS 主控台中,以滑鼠右鍵按一下管理範本,然後按一下 [檔案匯出範本To export NPS templates, in the NPS console, right-click Templates Management, and then click Export Templates to a File.

  2. 匯入 NPS 範本,在 NPS 主控台中,以滑鼠右鍵按一下管理範本,然後按一下 [匯入電腦的範本匯入範本,從檔案To import NPS templates, in the NPS console, right-click Templates Management, and then click Import Templates from a Computer or Import Templates from a File.