How can I create a script to change the wireless key using the Ubiquiti Unifi controller or Unifi wireless access points
I have a desire to create a script that will change the wireless access key on a Guest wireless network comprised of 5 Unifi wireless access points. I have the Unifi controller software installed on a Windows 2012 R2 server and all seems to be working well.
I would like a script that can run on a monthly basis to change the wireless key\password (various reasons for this). I am having issues finding any information on how to do that on a Windows server using a command (bat) file or Powershell.
Thanks for the info. I see the files you are talking about. I will have to play and see if the controller software can be updated in that way.
I found SSH commands to modify the UAPs directly but the controller is unaware of the changes and the next time you modify settings using the controller it overwrites the UAPs configuration.
I am really looking for a powershell script that will interface with the controller code\db so I can utilize the provisioning facilities of the controller. I am not familiar with MongoDB so writing anything will be a fair bit of learning. I was hoping to get a significant shove in the right direction.