Upgrade Workspot Agent (RD Server/Managed Gateway/Desktop) from Azure RUN Command

Prev Next
  • This task is normally performed by the Support & Ops team whenever a new Agent releases to test on Desktops/Gateways/RD App Servers, before releasing the Agent to the Production.  

  • In some cases, if there is a hotfix to address the specific issues. 

Prerequisites:  

  • Need to have access to Customer’s Azure Portal and appropriate permission to execute commands from Run  

  • Workspot Agent version URL that needs to be updated. 

How to execute Script from Azure RUN:

  • Get the latest Gateway/Desktop Agent Version details. 

Ex: https://workspotbuilds.blob.core.windows.net/agentwindowsproduction/3.8.1/2298/aa381c64-be7d-4c32-986d-1bd991bfee5f/WorkspotAgentSetup.msi 

  • Update the latest Agent URL in the Script file at the below-highlighted location. 

Stop-Service -name "workspot Agent" 

Stop-process -name *workspot* 

echo "Service and Process Stopped" 

# Add the required Agent URL link here ## <https....msi> 

############################### 

$url = "https://workspotbuilds.blob.core.windows.net/agentwindowsproduction/3.8.1/2298/aa381c64-be7d-4c32-986d-1bd991bfee5f/WorkspotAgentSetup.msi" 

############################## 

$output = (Get-Location).Path+"WorkspotAgentSetup.msi" 

$start_time = Get-Date 

$Temp=Invoke-WebRequest -Uri $url -OutFile $output 

#echo "Started running Agent Installer" 

# Install Agent 

$arguments = "/i $($output) /q NoregisterAgent=true /l*v install.log" 

Start-Process "msiexec.exe" $arguments -Wait -PassThru 

Start-Service -name "workspot Agent" 

  • Go to RUN Command and Paste the Script 

  • Observe the Output 

  • Validate the Agent Version from Azure RUN by executing the following command. 

Get-WmiObject win32_product|?{$_.Name -like '*Workspot*'}|Select-Object Name, Version 

  • The same can be verified from Watch or Control and Verify the Agent version.