You must run UniFi OS Server using the account you initially set it up on. This is a Windows-specific limitation. On Linux/Docker, UniFi OS Server runs as a system service and does not have this constraint. If you would rather use a service account on Windows, create a service account then install UniFi OS Server under it.
Prerequisites
- Run this script as an Administrator
- UniFi OS Server must already be installed and working when launched manually
Usage
- Run the script in an elevated PowerShell session. It will prompt for credentials.