--- title: "Upgrade Workspot Agent (RD Server/Managed Gateway/Desktop) from Azure RUN Command" slug: "upgrade-workspot-agent-rd-servermanaged-gatewaydesktop-from-azure-run-command" updated: 2024-07-16T13:13:16Z published: 2024-07-16T13:13:16Z canonical: "docs.workspot.com/upgrade-workspot-agent-rd-servermanaged-gatewaydesktop-from-azure-run-command" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.workspot.com/llms.txt > Use this file to discover all available pages before exploring further. # Upgrade Workspot Agent (RD Server/Managed Gateway/Desktop) from Azure RUN Command - 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](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 ## ############################### $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" - Login Azure CSP [https://partner.microsoft.com/en-US/](https://partner.microsoft.com/en-US/) - Access the Customer Portal - Go to Required GWs ![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/7d88a884-63b3-4225-9f56-371dd939bdc8.png?sv=2026-02-06&spr=https&st=2026-10-12T12%3A11%3A35Z&se=2026-10-12T13%3A11%3A35Z&sr=c&sp=r&sig=HZKSijx%2FyZH27vrZjvYAfgrtgCCYrqMVGmLn3q7liNM%3D) - Go to RUN Command and Paste the Script ![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/cb107098-f85f-4aa9-9ead-ca254fe1cad4.png?sv=2026-02-06&spr=https&st=2026-10-12T12%3A11%3A35Z&se=2026-10-12T13%3A11%3A35Z&sr=c&sp=r&sig=HZKSijx%2FyZH27vrZjvYAfgrtgCCYrqMVGmLn3q7liNM%3D) - Observe the Output ![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/357223b2-d00e-44ef-a213-27db5a3b5094.png?sv=2026-02-06&spr=https&st=2026-10-12T12%3A11%3A35Z&se=2026-10-12T13%3A11%3A35Z&sr=c&sp=r&sig=HZKSijx%2FyZH27vrZjvYAfgrtgCCYrqMVGmLn3q7liNM%3D) - Validate the Agent Version from Azure RUN by executing the following command. *Get-WmiObject win32_product|?{$_.Name -like '*Workspot*'}|Select-Object Name, Version* ![](https://cdn.us.document360.io/ad9153e1-c8de-4f56-94f2-b717a1fc3a68/Images/Documentation/2d09a09e-f48b-4343-8b23-09bb8a1bb748.png?sv=2026-02-06&spr=https&st=2026-10-12T12%3A11%3A35Z&se=2026-10-12T13%3A11%3A35Z&sr=c&sp=r&sig=HZKSijx%2FyZH27vrZjvYAfgrtgCCYrqMVGmLn3q7liNM%3D) - The same can be verified from Watch or Control and Verify the Agent version.