Manage an ezeep Hub with PowerShell
Use the TPHubPS module to configure a Hub from Windows PowerShell. For a single change, the Hub console is also available.
On this page
[Step] 1. Download TPHubPS.dll from the Hub and import it in Windows PowerShell
- Open the Hub console’s login page from a Windows computer on the local network.
- Download TPHubPS.dll from that page.
- Open the downloaded file’s Properties, select Unblock if shown, and confirm.
- Open Windows PowerShell as an administrator and change to the folder containing TPHubPS.dll.
Import the module:
Import-Module .\TPHubPS.dll
[/Step]
[Step] 2. Set the Hub URL and authenticate with its administrator password
Set the target URL, replacing the example address with your Hub’s address:
Set-TPHubUri -Uri https://192.168.1.50
The documented setup uses the following certificate option. It accepts the Hub certificate without validation; use it only after confirming that the address belongs to your Hub.
Set-TPHubServerCertificateValidation -Option AcceptAlways
Authenticate with the Hub administrator password, replacing the placeholder:
Get-TPHubAuthentication -PlainPassword "YOUR-HUB-PASSWORD"
[/Step]
[Step] 3. Use Get-Command and Get-Help to find Hub commands and parameters
List the commands supplied by your installed module:
Get-Command -Module TPHubPS
For syntax and available help for a command:
Get-Help Get-TPHubPrinter -Full
Get-Command Get-TPHubPrinter -Syntax
Read the printer list and version information:
Get-TPHubPrinter
Get-TPHubVersions
Use the Hub PowerShell command reference to find the command for a task. Check its parameters before making changes.
[/Step]
[Step] 4. Check firmware support, then authenticate remotely using the Hub’s MAC
Remote PowerShell requires a firmware version that supports it. The initial firmware 2.2.111 release lists remote configuration as unavailable; check the release information for your installed version before using this route.
Download the module package linked from the support guide: TPHubPS in PowerShell Gallery. Extract it on your Windows computer and open PowerShell in the folder containing TPHubPS.dll.
Replace the placeholders with your Hub’s MAC address and administrator password:
Import-Module .\TPHubPS.dll
Set-TPHubServerCertificateValidation -Option AcceptAlways
Add-TPHubClaimEzpHub -Serial "YOUR-HUB-MAC"
Get-TPHubAuthentication -PlainPassword "YOUR-HUB-PASSWORD" `
-ConnectorSerial "YOUR-HUB-MAC"
The same Hub commands can then be used through the remote connection where supported.
[/Step]
Finish the session
Clear-TPHubAuthentication