Defines an address of a server, workstation or device on which a ThinPrint Client or the Connection Service runs.
- ThinPrint Client
- Connection Service
New-TpmsObjTpClient -Name <string> -Port <uint32> [-Uidx <uint32>]
|-Name||ThinPrint Client address or Connection Service address|
|-Port||TCP port to connect to the ThinPrint Client or to the Connection Service (default: 4000)|
|-Uidx||Client ID (of the ThinPrint Client) to connect to the Connection Service|
Example 1: cmdlet usage
The following example shows how to define a ThinPrint Client machine – here: ws3574 – to retrieve its printer information with the ThinPrint TCP/IP protocol.
New-TpmsObjTpClient -Name ws3574 -Port 4000
Example 2: cmdlet usage
The following example shows how to define the ThinPrint Client to retrieve its printer information with the Connection Service protocol. The Client ID must be set in the ThinPrint Client and will be sent by Tpms.Agent to the Connection Service to retrieve printer information of the relevant ThinPrint Client.
The IP address of the Connection Service is 192.168.149.21, and the ID of the ThinPrint Client is 88.
New-TpmsObjTpClient -Name "192.168.149.21" -Port 4000 -Uidx 88