Before using any command, you need to login to the controller. PS C:\>Invoke-UniFiApiLogin In version 1.0.8, this will change: You no longer need to login/authenticate. All commands will do a check and login/authenticate when needed. ...