Open navigation

Set-TPHubThinPrintConSvcConfig

Description

Syntax

Example 1

Example 2



Description

Modifies the ThinPrint Client Connection Service configuration (see ThinPrint)


Syntax

Set-TPHubThinPrintConSvcConfig -Config <variable> [-Proxy <string>]
ParameterDescription
-IsActive1 = Connection Service enabled (displayed as True)
0 = Connection Service disabled (displayed as False)
-Addressthe address of the server on which the Connection Service runs
-PortTCP port, over which the ThinPrint Client connects with the Connection Service; default: 4001
-ClientIdthe device’s identification number, for logging on to the Connection Service
-AuthKeyauthentication key for logging on to the Connection Service
-ConfigConnection Service configuration defined through variable
-Proxy• optional (from firmware version 1.1): proxy server address
• can also be specified globally using Set-TPHubProxy


Example 1

The following example sets the Connection Service values Client ID = 443 and Authentication Key = 43:

$a = Get-TPHubThinPrintConSvcConfig 
$a 
$c = 443 
$d = 43 
$a.ClientId = $c 
$a.AuthKey = $d
Set-TPHubThinPrintConSvcConfig -Config $a or $a | Set-TPHubThinPrintConSvcConfig
Get-TPHubThinPrintConSvcConfig

ThinPrint Hub's PowerShell cmdlet Set-TPHubThinPrintConSvcConfig: setting client ID and authentication key

The result in the web console is displayed in the following screenshot. 

ThinPrint Hub's PowerShell cmdlet Set-TPHubThinPrintConSvcConfig: corresponding web console


Example 2

The following example disables the Connection Service option and then enables it directly. Here, the current state is monitored each with Get-TPHubThinPrintConSvc­Config.

$a = Get-TPHubThinPrintConSvcConfig
$a
$b = 0
$a.IsActive = $b
Set-TPHubThinPrintConSvcConfig -Config $a
$a = Get-TPHubThinPrintConSvcConfig
$a
$b = 1
$a.IsActive = $b
Set-TPHubThinPrintConSvcConfig -Config $a
$a = Get-TPHubThinPrintConSvcConfig
$a

ThinPrint Hub's PowerShell cmdlet Set-TPHubThinPrintConSvcConfig: switching Connection Service off and on





Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.