This article describes how to perform an unattended setup of a WATS Client using a Powershell script.
The first step is to download the installer package (.msi) to a location where the client can reach it. You can find a download link at download.wats.com
To install the client without user interaction, use this command (WATSClient_5.0.392_x64.msi is an example):
msiexec /i "WATSClient_5.0.392_x64.msi" /passive
To setup and configure the client, you can use these Powershell commands:
#Url to your wats instance
#Location of your test station
#Purpose of your test station
#The Client register token is received when you register your account
#The next statements locates the installed TDM assembly, and makes it available to PowerShell.
Add-Type -Path $tdmdll
$tdmapi.SetupAPI($tdmDataFolder, $tdmLocation, $tdmPurpose, $true)
$tdmapi.RegisterClient($tdmURL, "", $tdmClientRegisterToken)
#$tdmDataFolder is the full path to the location to the WATS folder containing settings, logs and offline reports
#PS - instead of using $tdmClientRegisterToken, you can use a WATS username and password that has the RegisterClient permission