How to – Run UniFi Controller as a Windows Service – Resolved

First make sure UniFi is not running
Locate your java installation directory.
On 64-bit, it’s usually at “C:\Program Files (x86)\Java\jre6\bin”; otherwise “C:\Program Files\Java\jre6\bin”. (replace jre6 for jre7 if you have the latest Java)
Add the dir above to the PATH (from Computer->Properties->Advanced system settings)
run a command prompt (as an Administrator, right click on ‘Command Prompt’ and choose ‘Run as administrator’. THIS IS IMPORTANT ON WIN2008/7+, otherwise the service may not get created)
cd (cd “%userprofile%/Ubiquiti Unifi” will usually do the trick, including the quote marks)
java -jar lib\ace.jar installsvc
Start the service: net start “Unifi Controller”

I tested this today and it works with xp just fine.

Fix – Agent XPs’ component is turned off as part of the security configuration for this server

If you get this message when try to edit a maintenance task:

‘Agent XPs’ component is turned off as part of the security configuration for this server. A system administrator can enable the use of ‘Agent XPs’ by using sp_configure. For more information about enabling ‘Agent XPs’, see “Surface Area Configuration” in SQL Server Books Online. (ObjectExplorer)

Chances are your MS SQL Agent isn’t running. Just start the service and you should be good. I would recommend going into servers and setup a recovery option to restart upon failure, this will keep a watch over it and start it if its stopped.