Get-UnifiController
Description
Returns a unifiController object containing all site data.
Requirements
- PowerShell v5
- Unifi module
Usage
- Imports the Unifi module.
- Connects to the Unifi API.
- Creates and returns a Unifi controller object.
.\Get-UnifiController.ps1 -TargetName 'localhost' -Port 8443 -Credential $credential
Parameters
| Parameter | Alias | Required | Default | Type | Description | 
|---|---|---|---|---|---|
| TargetName | True | String | The host name or the IP address of the target Unifi controller. | ||
| Port | False | 8443 | Int | The port designated for the Unifi controller. | |
| Credential | True | PSCredential | A credential object to access the Unifi controller. | 
Output
Location of output for log, result, and error files.
System.Object