Open navigation

Set-TPHubPPConfiguration

Description

Syntax

Example 1

Example 2



Description

Sets specific Personal Printing properties of a Hub; from firmware version 1.1. See also the relevant configuration in the Web console.


Syntax

Set-TPHubPPConfiguration [-IsActive <bool>] -Config <variable> [-ServerUri <string>]
 [-ValidateServerCertificate <bool>] [-PrinterId <uint16>] [-Comment <string>] [-Pin <string>]
 [-JobHandlingMode <JobHandlingMode>] [-Proxy <string>]
ParameterDescription
-IsActiveenables the Personal Printing Client (1|0)
-ConfigPersonal Printing specified by a variable
-ServerUriaddress of the Personal Printing server:
• http for unencrypted connections to the Personal Printing server
• https for encrypted connections to the Personal Printing server
In this case, a web server certificate that has been issued for the address spec­ified here (IP address, hostname or FQDN), and that can be certified via its root certificate, must be installed on the Personal Printing server.
-ValidateServer­CertificateIf the server URL is specified as https, the Personal Printing server automatically returns its web server certificate.
• 1 = use the root certificate to verify the web server certificate
• 0 = ignore web server certificate
-PrinterIdtarget printer ID on the Personal Printing server
-Commentany comment, e. g. the printer name behind the printer ID
-PinDefault user PIN for the Personal Printing server; this must also be assigned as the User PIN for all users using the same ThinPrint Hub.
-JobHandlingModeOnebyone: print the oldest print job stored for the user on the Personal Printing server
Allatonce: print all the print jobs stored for the user on the Personal Printing server
Printwhilepresent: all print jobs will be printed, as long as the NFC token or card is held to the card reader
-Proxy• optional: proxy server address
• can also be specified globally using Set-TPHubProxy


Example 1

The following example reads the configuration of the current Hub using Get-TPHubP­PConfiguration and writes it in the variable $ppconfig. There, the comment is changed from test (top arrow in Illus. below) to HP Color LaserJet CP3505dn (bottom arrow) using properties. Finally, the variable is sent back to the Hub using Set-TPHubPPConfiguration.
For individual cmdlet properties see Get-TPHubPPConfiguration.

$ppconfig_old = Get-TPHubPPConfiguration 
$ppconfig_old.ServiceConfigs 
$ppconfig_old.ServiceConfigs[0].Comment = "HP Color LaserJet CP3505dn"
$ppconfig_old | Set-TPHubPPConfiguration or Set-TPHubPPConfiguration -Config $ppconfig_old
$ppconfig_new = Get-TPHubPPConfiguration 
$ppconfig_new.ServiceConfigs[0].Comment

ThinPrint Hub's PowerShell cmdlet Set-TPHubPPConfiguration: changing the comment



Example 2

The following example sets the Default user password from 123456 (top arrow in Illus. below) to 777777 (bottom arrow). On this, the parameter -Pin is used.

$ppconfig_old = Get-TPHubPPConfiguration 
$ppconfig_old.ServiceConfigs
Set-TPHubPPConfiguration -Pin 777777
$ppconfig_new = Get-TPHubPPConfiguration 
$ppconfig_new.ServiceConfigs[0].Pin

ThinPrint Hub's PowerShell cmdlet Set-TPHubPPConfiguration: setting the default user password



Did you find it helpful? Yes No

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