Prepare an NPS server for imaging

Applies To: Windows Server 2012

If you intend to create an image of an installation for deployment to a different computer, and the Network Policy Server (NPS) role service is installed on the source server, the server may be storing shared secrets that should be removed before creating the image. This topic contains information about how to remove the relevant settings and data from the NPS configuration.

This topic includes sample Windows PowerShell cmdlets that you can use to automate some of the procedures described. For more information, see How to Run a Windows PowerShell Cmdlet.

Removing computer-specific settings and data

If your server has RADIUS clients or remote RADIUS server groups defined in the NPS configuration, you should remove them before creating an image. Use the procedures below to delete them from the NPS configuration.

To delete RADIUS clients from the NPS configuration

If you have specified RADIUS clients on the NPS server, do the following:

  1. First display the list of RADIUS clients on the NPS server. From an elevated command prompt, type the following command and then press Enter:

    netsh nps show client
    
  2. Delete each client in the list. To delete a RADIUS client from the configuration, type the following command and then press Enter:

    netsh nps delete client [name]
    

    Example

    The following example deletes a RADIUS client named WirelessAP1 from the NPS server configuration.

    netsh nps delete client name = WirelessAP1
    

Tip

You can delete multiple RADIUS clients by inserting a comma between each client, such as netsh nps delete client name = WirelessAP1,WirelessAP2,WirelessAP3

![](images/Cc732929.1a9ef103-b11a-437d-90b2-03bfa7c7b03c(WS.10).gif)**Windows PowerShell equivalent commands**

In Windows ServerĀ® 2012, you can perform the same function with a Windows PowerShell command.

    Remove-NpsRadiusClient [-Name] <Radius Client Name>
  1. Repeat this procedure for each RADIUS client configured on the NPS server.

To delete a remote RADIUS server group from the NPS server configuration

If you have configured a remote RADIUS server group on the NPS server, do the following:

  1. First display the list of remote server groups configured on the NPS server. From an elevated command prompt, type the following command and then press Enter:

    netsh nps show remoteservergroup
    
  2. Delete each remote server group in the list. To delete a remote server group from the configuration, type the following command and then press Enter:

    netsh nps delete remoteservergroup [name =] name
    

    Example

    The following example deletes a remote RADIUS server group named RemoteServers1 from the NPS server configuration.

    netsh nps delete remoteservergroup name = RemoteServers1
    

Note

When you delete a remote RADIUS server group, all RADIUS servers contained within the group are deleted.

  1. Repeat this procedure for each remote RADIUS server group configured on the NPS server.