Set-TpmsServiceUrl

121 views 0

Description

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

Syntax

Set-TpmsServiceUrl -Uri <string>

Parameter Description
-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.

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)

the first line configures the address of Tpms.Service

See also Get-TpmsServiceUrl.

Previous Page
Next Page

Was this helpful?