Open navigation

Set-TpmsServiceUrl

Description

Syntax

Example 1: cmdlet usage

Example 2: Script containing Set-TpmsServiceUrl



Description

Specifies the URL of Tpms.Service on the Tpms.Powershell machine – including address and TCP port.


Syntax

Set-TpmsServiceUrl -Uri <string> 
ParameterDescription
-Uri• URI or URL of the machine where Tpms.Service runs
 • use https only

The target address must be specified as an FQDN. The TCP port number must match the Tpms.Service set­tings. For more detail on this, see the Bindings property of Internet Information Services (IIS) Manager. The default TCP port number is 4040.

ThinPrint Management Services: IIS of Tpms.Service: TCP port set to the default value 4040


Example 1: cmdlet usage

The following example sets the URL of Tpms.Service to https://tpms035.ourdomain.local:4040. Here, Tpms.Service is installed on a server called tpms035.

Set-TpmsServiceUrl -Uri https://tpms035.ourdomain.local:4040


Example 2: Script containing Set-TpmsServiceUrl

The following script can be run on an admin computer to initiate the Tpms environment. The script only needs to be run once. It imports the module Tpms.Powershell, sets the URL of Tpms.Service and sets the log level to Info. It defines a target server ($srv) running Tpms.Agent (cps47.ourdomain.local) and – finally – sends the relevant requests to the target machine with Start-TpmsSetupByAgent -Servers ($srv).

Set-TpmsServiceUrl -Uri https://tpms035.ourdomain.local:4040

Set-TpmsLogLevel -RelayLogLevel Info 
$srv = New-TpmsObjSetupAgent -Name "cps47.ourdomain.local" -Port 5050 -Credential (Get-Credential -Message "Please enter your credentials." -UserName "ourdomain\Administrator") 
Start-TpmsSetupByAgent -Servers ($srv)

ThinPrint Management Services: the first line configures the address of Tpms.Service

See also Get-TpmsServiceUrl.


Did you find it helpful? Yes No

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