Open navigation

Set-TPHubDefaultPrinter

Description

Syntax

Example 1

Example 2



Description

Sets the default (or the current) printer of the ThinPrint Client (see Printers)


Syntax

Set-TPHubDefaultPrinter -Id <uint16> -Name <string> -Printer <variable>[-Proxy <string>]
ParameterDescription
-IDprinter with this ID will be the current printer (alternative to -Name and -Printer)
-Nameprinter with this name will be the current printer (alternative to -Id and -Printer)
-Printerthe current printer is defined by a variable (alternative to -Id and -Name)
-Proxy• optional (from firmware version 1.1): proxy server address
• can also be specified globally using Set-TPHubProxy


Example 1

Set-TPHubDefaultPrinter -Id 2
Get-TPHubDefaultPrinter

ThinPrint Hub's PowerShell cmdlet Set-TPHubDefaultPrinter

the printer with ID 2 is now the current printer


Example 2

Get-TPHubDefaultPrinter 
$a = Get-TPHubPrinter -Id 1
Set-TPHubDefaultPrinter -Printer $a or $a | Set-TPHubDefaultPrinter
Get-TPHubDefaultPrinter

ThinPrint Hub's PowerShell cmdlet Set-TPHubDefaultPrinter: usage of a variable

the current printer is now back to that with ID 1


Did you find it helpful? Yes No

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