Description
Updates the firmware. See also Downloading and installing a firmware update.
After updating via PowerShell you have to switch to the new version of the module TPHubPS.dll.
Note! Carry out a precautionary backup beforehand; see Backup and Restore or Export-TPHubBackup.
Syntax
Update-TPHubFirmware -Path <string> [-Proxy <string>] Update-TPHubFirmware -Url <uri> [-Proxy <string>]
| Parameter | Description |
| -Path | local path to .tgz file with the new version of the firmware (the numbers in the file name indicate the new and the old versions); refers to Update Firmware in the web console |
| -Url | https://www.thinprint.com/hubupdate = URL of a ThinPrint server to the new version of the firmware; refers to Download Firmware in the web console (from firmware version 1.1) |
| -Proxy | • optional (from firmware version 1.1): proxy server address • can also be specified globally using Set-TPHubProxy |
Note! For updates of firmware versions 1.2.23 to 1.3.11, use the TPHubPS.Update.dll module instead of TPHubPS.dll.
Example 1
The following example shows a step-by-step firmware update after a factory reset of a Hub of hardware version 1.0.
# Determining the current firmware version (without Get-TPHubVersions) [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
(New-Object System.Net.WebClient).downloadstring("https://192.168.178.36/api/version/getconfig") | ConvertFrom-Json
# Update from version 1.0.51 to 1.2.25
Update-TPHubFirmware -Path "C:\install\ThinPrint\firmware-update-1.0.51-1.2.25.tgz"
# Update from version 1.2.25 to 1.10.34
Get-TPHubAuthentication -PlainPassword print4life
Update-TPHubFirmware -Path "C:\install\ThinPrint\firmware-update-1.2.25-1.10.34.tgz"
# Update from Version 1.10.34 to the current version
Get-TPHubAuthentication -PlainPassword print4life
Update-TPHubFirmware -Path "C:\install\ThinPrint\firmware-update-1.2.25-1.16.98.tgz"
# Determining the current firmware version
Get-TPHubAuthentication -PlainPassword print4life
Get-TPHubVersions
Example 2
Update-TPHubFirmware -Url "https://www.thinprint.com/hubupdate"