This PowerShell script automates the configuration of Network Policy Server (NPS) with Azure Multi-Factor Authentication (MFA). It performs the following tasks:
- Backs up the NPS configuration file
- Generates a new password for the RADIUS shared secret
- Adds an NPS client
- Creates a network policy
- Adds a connection request policy
- PowerShell
- Administrator privileges
- Download or clone the script to your local machine.
- Open PowerShell with administrator privileges.
- Navigate to the directory where the script is located.
- Execute the script with the required parameters:
.\createNPSClientV3.ps1 -IPAddress 10.0.0.1 -ClientName Server01 -SharedSecret Password1245$ -Projectname Projectname