1. Create a batch file. Will keep 7 days of backup files.
cd c:\
cd \Backup\nps
netsh nps export filename="c:\backup\nps\%Date:~0,3%.xml" exportPSK=YES
netsh nps show config > "c:\backup\nps\%Date:~0,3%Readable.txt
2. Schedule the batch file to run once a day.
3. First netsh nps line exports the config into an xml file. The xml file can be imported using
netsh nps import , command. Second netsh nps line will dump the config into a readable text file for information.