安裝網路原則伺服器Install Network Policy Server

若要安裝的網路原則 Server (NPS) 來使用 Windows PowerShell 或新增角色和精靈中的功能,您可以使用此主題。You can use this topic to install Network Policy Server (NPS) by using either Windows PowerShell or the Add Roles and Features Wizard. NPS 是以角色服務的網路原則與服務存取伺服器角色。NPS is a role service of the Network Policy and Access Services server role.

注意

根據預設,NPS RADIUS 連接埠 1812 年,1813 年、1645 年 1646 年所有安裝的網路介面卡上的資料傳輸接聽。By default, NPS listens for RADIUS traffic on ports 1812, 1813, 1645, and 1646 on all installed network adapters. 使用進階安全性 Windows 防火牆尚未安裝 NPS 時,如果上述連接埠防火牆例外會自動建立網際網路通訊協定第 6 版 (IPv6) 和 IPv4 流量的安裝程序期間。If Windows Firewall with Advanced Security is enabled when you install NPS, firewall exceptions for these ports are automatically created during the installation process for both Internet Protocol version 6 (IPv6) and IPv4 traffic. 如果您的網路存取伺服器設定 RADIUS 流量傳送到以外這些預設的連接埠,移除例外建立 NPS 在安裝期間,Windows 防火牆使用進階安全性,並建立例外 RADIUS 流量您使用的連接埠。If your network access servers are configured to send RADIUS traffic over ports other than these defaults, remove the exceptions created in Windows Firewall with Advanced Security during NPS installation, and create exceptions for the ports that you do use for RADIUS traffic.

管理認證Administrative Credentials

若要完成此程序,您必須成員的網域系統管理員群組。To complete this procedure, you must be a member of the Domain Admins group.

若要使用 Windows PowerShell 安裝 NPSTo install NPS by using Windows PowerShell

若要使用 Windows PowerShell,系統管理員身分執行 Windows PowerShell 來執行這個程序輸入下列命令,,然後按 ENTER 鍵。To perform this procedure by using Windows PowerShell, run Windows PowerShell as Administrator, type the following command, and then press ENTER.

Install-WindowsFeature NPAS -IncludeManagementTools

若要使用伺服器管理員安裝 NPSTo install NPS by using Server Manager

  1. NPS1,在伺服器管理員中,按一下 [管理,然後按新增角色與功能On NPS1, in Server Manager, click Manage, and then click Add Roles and Features. 新增角色與功能精靈開啟。The Add Roles and Features Wizard opens.

  2. 在您開始之前,請先,按一下 [In Before You Begin, click Next.

    注意

    在您開始之前,請先頁面上新增角色與精靈中的功能不顯示如果先前已選取預設略過此頁面功能精靈與新增的角色執行。The Before You Begin page of the Add Roles and Features Wizard is not displayed if you have previously selected Skip this page by default when the Add Roles and Features Wizard was run.

  3. 選擇安裝類型,確認以角色為基礎,或為基礎的功能的安裝已選取,然後按一下 [下一步In Select Installation Type, ensure that Role-Based or feature-based installation is selected, and then click Next.

  4. 選取目的伺服器,確保選取伺服器伺服器集區的選取。In Select destination server, ensure that Select a server from the server pool is selected. 伺服器集區,請確定已選取 [本機電腦。In Server Pool, ensure that the local computer is selected. 按一下下一步Click Next.

  5. 選取伺服器角色,請在角色、選取網路原則與服務存取In Select Server Roles, in Roles, select Network Policy and Access Services. 對話方塊詢問是否它應該會新增所需的網路原則與服務存取的功能。A dialog box opens asking if it should add features that are required for Network Policy and Access Services. 按一下新增功能,然後按下一步Click Add Features, and then click Next

  6. 選擇功能,按一下 [下一步,在網路原則與服務存取,檢視的資訊,提供,然後按一下下一步In Select features, click Next, and in Network Policy and Access Services, review the information that is provided, and then click Next.

  7. 選擇角色服務,按一下 [的網路原則伺服器In Select role services, click Network Policy Server. 新增所需的網路原則伺服器功能,按一下 [新增功能In Add features that are required for Network Policy Server, click Add Features. 按一下下一步Click Next.

  8. 確認安裝選項,按一下 [必要時自動重新開機目的伺服器In Confirm installation selections, click Restart the destination server automatically if required. 當系統提示您確認選擇時,請按一下[是],然後按一下 [安裝When you are prompted to confirm this selection, click Yes, and then click Install. 安裝進度頁面會顯示在安裝期間狀態。The Installation progress page displays status during the installation process. 此程序完成時,該訊息」成功安裝電腦名稱「出現時,其中電腦名稱電腦時,您的網路原則伺服器的名稱。When the process completes, the message "Installation succeeded on ComputerName" is displayed, where ComputerName is the name of the computer upon which you installed Network Policy Server. 按一下關閉Click Close.

如需詳細資訊,請查看管理 NPS 伺服器]For more information, see Manage NPS Servers.