You can use commands in the Netsh Network Policy Server (NPS) context to configure all aspects of NPS. The Netsh commands for NPS provide the same functionality as the NPS console, and the commands can be run manually at the netsh prompt or in scripts and batch files.

To run these commands from the command prompt, you must either enter the netsh nps context or prepend the context to the command. For example, if you are at the command prompt but have not typed netsh and then nps to enter the netsh nps context, you must type:

netsh nps command

Where command is the command that you want to run, including all of the required parameters for the command.

Netsh NPS command reference

The Netsh commands for NPS are grouped by the following command categories.

NPS Server Commands. These commands allow you to configure NPS ports, event log settings, and other general server settings. They also allow you to back up and restore your NPS server configuration.

RADIUS Client Commands. These commands allow you to configure RADIUS clients in NPS.

Connection Request Policy Commands. These commands allow you to configure connection request policies in NPS.

Remote RADIUS Server Group Commands. These commands allow you to configure remote RADIUS server groups in NPS.

Network Policy Commands. These commands allow you to configure network policy in NPS. Network policy was formerly known as remote access policy.

Network Access Protection Commands for NPS. These commands allow you to configure NAP policy settings in NPS.

Accounting Commands . These commands allow you to configure NPS log file settings and Microsoft SQL Server™ logging in NPS.

For information on how to interpret netsh command syntax, see Formatting Legend.