On the admin computer, run the Management Services Powershell console from Windows’ Start menu as administrator.
If you are running a script on this machine for the first time, you must first allow the PowerShell execution policy to run scripts for this account. Therefore run this cmdlet:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# Step 1
# Specify the address of Tpms.Service:
Set-TpmsServiceUrl -Uri "https://tpms035.ourdomain.local:4040"
# To display messages, set the logging level to Info:
Set-TpmsLogLevel -RelayLogLevel Info
# Steps 1 and 2
# Specify the target machine where Tpms.Agent is installed.
# If Tpms.Agent is running locally, enter:
$srv = New-TpmsObjSetupAgent -Name "cps47.ourdomain.local" -Port 5050
# If Tpms.Agent is running remotely, enter:
$srv = New-TpmsObjSetupAgent -Name "cps47.ourdomain.local" -Port 5050 -Credential (Get-Credential -Message "Please enter your credentials." -UserName "ourdomain\Administrator")
# A window will open. Enter admin credentials of the target machine to be able to retrieve the certificates.
# Step 3
# Send the specified settings to Tpms.Service. This initiates Tpms.Powershell:
Start-TpmsSetupByAgent -Servers ($srv)
Note! The cmdlet Set-TpmsServiceUrl must be run one-time on each admin computer. However, the cmdlet New-TpmsObjSetupAgent must be run one-time for each Tpms.Agent.