How to update DNS in the agent configuration
1 - Update the configuration file
Open the following file :
C:\Program Files\proVconnect\proVconnect Device Agent\Device Agent\bin\Wanpulse.config
Find the line : <add key="Communication.Url" value="xxxxxxxxxxxxxxxx" />
Edit the line this way : <add key="Communication.Url" value="https://IP-OR-DNS:HTTPS-PORT" />
With :
IP-OR-DNScorresponding to the IP address or DNS of your proVconnect instance (prefer DNS)HTTPS-PORTcorresponding to the port used for your instance (generally 443)
You can use the following PowerShell script:
# Define variables
$ipOrDns = "IP-OR-DNS"
$httpsPort = "443"
$file = "C:\Program Files\proVconnect\proVconnect Device Agent\Device Agent\bin\Wanpulse.config"
# Replace the URL in configuration file
$pattern = 'value="https?://[^"]*"'
$replacement = "value=`"https://$($ipOrDns):$($httpsPort)`""
(Get-Content $file) -replace $pattern, $replacement | Set-Content $file
2 - Restart the service
Kill the running service process
$id = Get-WmiObject -Class Win32_Service -Filter "Name LIKE 'proVconnect Device Agent Service'" | Select-Object -ExpandProperty ProcessId
if ($id -ne 0) { Get-Process -Id $id | Stop-Process -Force }Start the service
Get-Service -Name "proVconnect Device Agent Service" | Start-Service