On Windows Server 2008
1- Create a text file and modify extension to PS1
4- Under the action, choose "Start program" and enter
powershell.exe "&'C:\Config_Backup_Script\nps_radius_config_bk.PS1'"
5- Right click the task and open properties.
1- Create a text file and modify extension to PS1
C:\Config_Backup_Script\nps_radius_config_bk.PS12- Enter the powershell command in the
netsh nps export filename="C:\NPS Configration Backup\nps_config_$(get-date -f yyyy-MM-dd).xml" exportPSK=YES3- Open Task Scheduler, "Create Basic Task", follow the wizard.
4- Under the action, choose "Start program" and enter
powershell.exe "&'C:\Config_Backup_Script\nps_radius_config_bk.PS1'"
5- Right click the task and open properties.
- "Change User or Group", choose "administrator" or any privileged user.
- Tick "Run whether user is logged on or not".
- Tick "Run with highest privileges".
- Click Ok and provide the administrator password.
Enjoy
No comments:
Post a Comment